Opened 5 years ago

Closed 5 years ago

Last modified 5 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:


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:

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. 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 Changed 5 years ago by Stereo

Keywords: macosx added

comment:2 Changed 5 years ago by Stereo

Resolution: duplicate
Status: newclosed

Closed as duplicate of #14397.

comment:3 Changed 5 years ago by Stereo

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

comment:4 Changed 5 years ago by bastiK

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

comment:5 Changed 5 years ago by Don-vip

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

comment:6 Changed 5 years ago by Stereo

Resolution: duplicate
Status: closedreopened

Oh great. What have I done?

comment:7 Changed 5 years ago by Stereo

Resolution: duplicate
Status: reopenedclosed

Closed as duplicate of #10033.

comment:8 Changed 5 years ago by bastiK

Done: #trac12703.

comment:9 Changed 5 years ago by stoecker

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
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.