Skip to content

Instantly share code, notes, and snippets.

View wanxe's full-sized avatar
:octocat:
Focusing

Jorge Nieto wanxe

:octocat:
Focusing
View GitHub Profile
@ethicka
ethicka / localhost-ssl-certificate.md
Last active November 14, 2024 19:53
Localhost SSL Certificate on Mac OS

🚨 2020 Update: I recommend using mkcert to generate local certificates. You can do everything below by just running the commands brew install mkcert and mkcert -install. Keep it simple!


This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

Sublime Text 3 configuration

subl config

ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

Custom color schemes