Skip to content

Instantly share code, notes, and snippets.

@plambrechtsen
Created June 8, 2023 00:32
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 plambrechtsen/3b0a6f210b56f0d7e697ed18aef8449c to your computer and use it in GitHub Desktop.
Save plambrechtsen/3b0a6f210b56f0d7e697ed18aef8449c to your computer and use it in GitHub Desktop.
Create Self Signed Certificate with SAN and convert to PFX
openssl req -x509 -newkey rsa:2048 -sha256 -days 3560 -nodes -keyout server.key -out server.pem -subj '/CN=server' -addext 'subjectAltName = DNS:server, DNS:server.local'
openssl pkcs12 -export -inkey server.key -in server.pem -out server.pfx -passout pass:password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment