Skip to content

Instantly share code, notes, and snippets.

@shturm
Created September 18, 2016 12:42
Show Gist options
  • Save shturm/a5bcfb897fd971e2d4825d427cd26829 to your computer and use it in GitHub Desktop.
Save shturm/a5bcfb897fd971e2d4825d427cd26829 to your computer and use it in GitHub Desktop.

Generate a self-signed certificate:

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt

Combine separate crt and key files in pfx:

openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment