Skip to content

Instantly share code, notes, and snippets.

@queil
Last active October 27, 2020 12:07
Show Gist options
  • Save queil/a9ccd94486aa7fd1b8c0d26a9a08e43e to your computer and use it in GitHub Desktop.
Save queil/a9ccd94486aa7fd1b8c0d26a9a08e43e to your computer and use it in GitHub Desktop.
Self-signed cert with Client Auth / Server Auth extensions
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