Skip to content

Instantly share code, notes, and snippets.

@justinhartman
Last active March 5, 2018 17:16
Show Gist options
  • Save justinhartman/5cab32dfd5e958169001c16cd99379ee to your computer and use it in GitHub Desktop.
Save justinhartman/5cab32dfd5e958169001c16cd99379ee to your computer and use it in GitHub Desktop.
RavenDB SSL Certificate Generator

RavenDB SSL Certificate Generator

A quick note on the command for generating a valid SSL certificate for RavenDB using openssl. You will need to have followed this tutorial to be able to simply run this one command below. If you don't have a valid localhost SSL certificate with a valid Certificate Authority keychain file then this won't work. The tutorial covers this all so don't fret.

Generate SSL Certificate

$ cd ~/.localhost/ca/intermediate
$ openssl pkcs12 -export -out ravendb/certificate.pfx -inkey private/localhost.key.pem \
      -in certs/localhost.cert.pem -certfile certs/ca-chain.cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment