Skip to content

macOS: Approve self-signed/untrusted certificates - #1096

Merged
niik merged 28 commits into
masterfrom
respect-my-authority
Apr 18, 2017
Merged

niik merged 28 commits into
masterfrom
respect-my-authority

Conversation

@joshaber

@joshaber joshaber commented Mar 29, 2017 •

Copy link
Copy Markdown
Contributor

Handles the macOS side of #671

This is gonna require some work either in Electron-proper or in a native module. Still trying to get a firm handle on how the pieces will fit together.

@joshaber joshaber changed the title [WIP] Approve self-signed/untrusted certificates Approve self-signed/untrusted certificates Apr 11, 2017
@joshaber

Copy link
Copy Markdown
Contributor Author

screen shot 2017-04-11 at 12 20 21 pm

This is ready for review 🙏

@joshaber

Copy link
Copy Markdown
Contributor Author

👈 boop

@niik niik self-assigned this Apr 13, 2017

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having some troubles testing this, I threw away app/node_modules and node_modules and rebuilt from scratch but I'm still getting this

image

Unrelated question, how hard would it be to let the users inspect the certificate? Like, launching the system
dialog for viewing a cert?

public render() {
const host = URL.parse(this.props.url).hostname
return (
<Dialog

This comment was marked as spam.

<li>If this is a GitHub Enterprise trial.</li>
<li>If your GitHub Enterprise instance is run on an unusual top-level domain.</li>
</ul>
<p>If you are unsure of what to do, close the app and contact your system administrator.</p>

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor Author

I'm having some troubles testing this, I threw away app/node_modules and node_modules and rebuilt from scratch but I'm still getting this

Yeah, the API is only implemented on macOS so far. @shiftkey's working on the Windows side.

Unrelated question, how hard would it be to let the users inspect the certificate? Like, launching the system dialog for viewing a cert?

Yup, we do this on macOS:

Last I knew, @shiftkey was still trying to figure out what the appropriate Windows equivalent was.

@niik

niik commented Apr 13, 2017

Copy link
Copy Markdown
Member

Yeah, the API is only implemented on macOS so far. @shiftkey's working on the Windows side.

I see, do you have a PR link for that? I think we should either hold this PR waiting for that work to land or conditionalize all of this to Mac for the time being, I'm not comfortable merging this as-is

@joshaber joshaber changed the title Approve self-signed/untrusted certificates macOS: Approve self-signed/untrusted certificates Apr 13, 2017
@joshaber

Copy link
Copy Markdown
Contributor Author

I see, do you have a PR link for that?

Nope, I don't think there is one.

I think we should either hold this PR waiting for that work to land or conditionalize all of this to Mac for the time being

I conditionalized the certificate trust API call to macOS. I'm inclined to think the dialog is still better than silently failing on Windows. Thoughts?

@niik

niik commented Apr 13, 2017

Copy link
Copy Markdown
Member

I conditionalized the certificate trust API call to macOS. I'm inclined to think the dialog is still better than silently failing on Windows. Thoughts?

Agreed, though I think we should remove the 'Continue' button on Windows and change the cancel button to 'Close'. Additionally I think we should make the dialog type='error'.

For mac, what do you think about changing the button text from 'Continue' to 'View Certificate', 'Trust Certificate' or something to that effect? And regardless of that discussion we should probably follow the same convention as we do for 'Delete branch' where we make the 'dangerous' action secondary and the 'Close'/Cancel action primary.

@joshaber

Copy link
Copy Markdown
Contributor Author

And regardless of that discussion we should probably follow the same convention as we do for 'Delete branch' where we make the 'dangerous' action secondary and the 'Close'/Cancel action primary.

Great shout 👍

@joshaber

Copy link
Copy Markdown
Contributor Author

🛀

@shiftkey

shiftkey commented Apr 14, 2017 •

Copy link
Copy Markdown
Member

I see, do you have a PR link for that?

Nope, I don't think there is one.

Nah, I haven't opened up the PR yet.

@niik
niik merged commit 7f2b4bf into master Apr 18, 2017
@niik
niik deleted the respect-my-authority branch April 18, 2017 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants