Created
June 8, 2023 00:32
-
-
Save plambrechtsen/3b0a6f210b56f0d7e697ed18aef8449c to your computer and use it in GitHub Desktop.
Create Self Signed Certificate with SAN and convert to PFX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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