Last active
October 27, 2020 12:07
-
-
Save queil/a9ccd94486aa7fd1b8c0d26a9a08e43e to your computer and use it in GitHub Desktop.
Self-signed cert with Client Auth / Server Auth extensions
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 -keyout my.domain.key -out my.domain.pem -days 3650 -subj '/CN=*.my.domain' -nodes -addext 'extendedKeyUsage=1.3.6.1.5.5.7.3.2,1.3.6.1.5.5.7.3.1' | |
openssl x509 -inform pem -in my.pem -outform der -out my.cer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment