Created
December 22, 2015 21:30
-
-
Save zenorocha/4b1d9e3eb4b595c7068b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env zsh | |
openssl genrsa -des3 -out self-signed.pass.key 2048 | |
openssl rsa -in self-signed.pass.key -out self-signed.key | |
openssl req -new -key self-signed.key -out self-signed.csr | |
openssl x509 -req -days 365 -in self-signed.csr -signkey self-signed.key -out self-signed.crt | |
echo "SHA1 fingerprint:\n" | |
openssl x509 -in self-signed.crt -sha1 -noout -fingerprint | |
rm self-signed.pass.key | |
rm self-signed.csr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment