Repository navigation
macOS: Approve self-signed/untrusted certificates - #1096
Conversation
|
👈 boop |
| public render() { | ||
| const host = URL.parse(this.props.url).hostname | ||
| return ( | ||
| <Dialog |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| <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.
This comment was marked as spam.
Sorry, something went wrong.
Yeah, the API is only implemented on macOS so far. @shiftkey's working on the Windows side.
Yup, we do this on macOS: Last I knew, @shiftkey was still trying to figure out what the appropriate Windows equivalent was. |
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 |
Nope, I don't think there is one.
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 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. |
Great shout 👍 |
|
🛀 |
Nah, I haven't opened up the PR yet. |



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.