Skip to content

Instantly share code, notes, and snippets.

@bdurand
Last active January 4, 2022 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdurand/a3f5b3016bccfd64a668cc81d4405db8 to your computer and use it in GitHub Desktop.
Save bdurand/a3f5b3016bccfd64a668cc81d4405db8 to your computer and use it in GitHub Desktop.
puma-dev TLS certificate commands
security add-trusted-cert -k $(security login-keychain | xargs | sed -e 's/^"//' -e 's/"$//') ~/Library/Application\ Support/io.puma.dev/cert.pem
mkdir -p /usr/local/etc/openssl`ls -ld /usr/local/opt/openssl | egrep -o "@[0-9.]+"`/certs
cp ~/Library/Application\ Support/io.puma.dev/cert.pem /usr/local/etc/openssl`ls -ld /usr/local/opt/openssl | egrep -o "@[0-9.]+"`/certs/io.puma.dev.pem
/usr/local/opt/openssl/bin/c_rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment