Skip to content

Instantly share code, notes, and snippets.

@fordaz
Last active January 1, 2017 22:28
Show Gist options
  • Select an option

  • Save fordaz/1b372e55b4d697ea2d41 to your computer and use it in GitHub Desktop.

Select an option

Save fordaz/1b372e55b4d697ea2d41 to your computer and use it in GitHub Desktop.
UAA key configuration
Generate your private key with any passphrase
openssl genrsa -aes256 -out server.key 1024
Remove passphrase from key
openssl rsa -in server.key -out server.key
Generate certificate signing request for CA
openssl req -x509 -new -key server.key -out server.csr
Generate self-signed certificate with 365 days expiry-time
openssl x509 -sha256 -days 365 -in server.csr -signkey server.key -out selfsigned.crt
Extract public key from certificate
openssl x509 -pubkey -noout -in selfsigned.crt > pubkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment