Skip to content

Instantly share code, notes, and snippets.

@tujlaky
Created April 4, 2018 12:47
Show Gist options
  • Select an option

  • Save tujlaky/8cd32de1778951f8d083dd3068398e71 to your computer and use it in GitHub Desktop.

Select an option

Save tujlaky/8cd32de1778951f8d083dd3068398e71 to your computer and use it in GitHub Desktop.
linux ssl hack
echo QUIT | openssl s_client -connect localhost:8101 | sed -ne '/BEGIN CERT/,/END CERT/p' > my-cert
certutil certutil -d sql:~/.pki/nssdb -A -t "P,," -n my-cert -i my-cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment