Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14397 closed enhancement (duplicate)

Add https certificate to macOS keychain more easily

Reported by: Stereo Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: macosx Cc:

Description

It's super useful how JOSM automatically adds its certificate to the Windows keystore, and it would be great if it could do the same for macOS.

This method modified for port 8112 works for me: https://gist.github.com/WoLpH/f959c2beccdd0fae925c

The only parts that really needs a shell is sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "/tmp/$HOST.cert"

Note that this script has a race condition. JOSM should write its certificate to an unpredictable filename, then call security add-trusted-cert on that filename before deleting it.

http://stackoverflow.com/a/40775875 describes how to sudo shell commands from java on macOS without exposing the user password.

security find-certificate -c localhost can find the certificates installed locally. security find-certificate -c localhost -p outputs it in pem format.

The interface in Preferences > Remote could look roughly like this:

[X] Enable HTTPS support

Your password is required to add JOSM's certificate to your browser's trusted certificates.

[Password field ] [Add certificate to browser button]

Current status: (Certificate trusted|Certificate missing)

Attachments (0)

Change History (9)

comment:1 by Stereo, 7 years ago

Keywords: macosx added

comment:2 by Stereo, 7 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #14397.

comment:3 by Stereo, 7 years ago

Ticket #14397 has been marked as a duplicate of this ticket.

comment:4 by bastiK, 7 years ago

Closed as Selfduplicate? This raises philosophical questions, but kudos to the trac programmers that this didn't mess up the database. :)

comment:5 by Don-vip, 7 years ago

Maybe we could still report a bug to Trac developers :)

comment:6 by Stereo, 7 years ago

Resolution: duplicate
Status: closedreopened

Oh great. What have I done?

comment:7 by Stereo, 7 years ago

Resolution: duplicate
Status: reopenedclosed

Closed as duplicate of #10033.

comment:8 by bastiK, 7 years ago

Done: #trac12703.

comment:9 by stoecker, 7 years ago

Well, the duplicate action is part of the advanced ticket workflow plugin, not of trac core. So you reported in wrong trac.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.