Skip to content

Instantly share code, notes, and snippets.

@jgrevich
Created June 2, 2016 21:24
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 jgrevich/52ad72f44a10d7c1ebc7abf9c5390a32 to your computer and use it in GitHub Desktop.
Save jgrevich/52ad72f44a10d7c1ebc7abf9c5390a32 to your computer and use it in GitHub Desktop.
Generate new SAML key and cert
#!/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