Skip to content

Instantly share code, notes, and snippets.

@rafaelfoster
Created December 17, 2013 21:06
Show Gist options
  • Save rafaelfoster/8012620 to your computer and use it in GitHub Desktop.
Save rafaelfoster/8012620 to your computer and use it in GitHub Desktop.
# Command extracts public key to domain.cer.
openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.cer
# Command extracts private key to domain.key.
openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key
<VirtualHost example.com:443>
...
SSLEngine on
SSLCertificateFile /path/to/domain.cer
SSLCertificateKeyFile /path/to/domain.key
...
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment