Created
June 2, 2016 21:24
-
-
Save jgrevich/52ad72f44a10d7c1ebc7abf9c5390a32 to your computer and use it in GitHub Desktop.
Generate new SAML key and cert
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
#!/bin/sh | |
openssl genrsa -des3 -out keys/saml.key.enc 2048 | |
openssl rsa -key keys/saml.key.enc -out keys/saml.key | |
openssl req -new -key keys/saml.key -out certs/saml.csr -config config/openssl.conf | |
openssl x509 -req -days 365 -in certs/saml.csr -signkey keys/saml.key -out certs/saml.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment