Using Safari with the Juju GUI
The Juju GUI uses secure web sockets to communicate with the Juju controller. To secure that channel we use a self-signed certificate. Most browsers allow the user to easily accept the certificate and all is well.
With Safari it is possible but a little more involved. The certificate must be accepted and placed into the Keychain. The steps to follow are below:
- Access the Juju GUI site.
- The site will start to load but then Safari will display the following alert:
- If you simply press Continue you’ll proceed to the GUI but the web socket will not work. Press Show Certificate instead.
- A certificate dialog box will be shown. Open the Trust section.
- Change the first drop down to Always Trust which will be cascaded down to the other drop downs.
- Pressing Continue will lead to a dialog box asking for your OS X password. After entering it, the certificate will be permanently added to the Certificates section shown by the Keychain Access utility. It’ll have a name like your-jujugui-1455269898.local which you can later delete if you wish.
Note that the self-signed certificates are created for each instance of the Juju GUI. Unfortunately this means you’ll need to repeat this process for each instance of the GUI you wish to use.
If at step 2 you press Continue, Safari will not be able to connect to the secure web socket and it will not present you with the certificate dialog again. To recover you must do the following:
- Open Preferences in Safari and go to the Privacy tab.
- Click the Details button and search for the site address.
- Select the entry and click Remove.
- Quit and restart Safari.
- Revisit the Juju GUI site.
Massimiliano Marcon’s post at his blog.