Created
May 21, 2016 20:38
-
-
Save SmetDenis/53052ad8570337f212f12b7be13af3a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 sh | |
------------------------------------------ | |
openssl genrsa -out jbzoo-com-ca.key 2048 | |
openssl req -x509 -new -key jbzoo-com-ca.key -days 10000 -out jbzoo-com-ca.crt | |
openssl genrsa -out jbzoo-com-server.key 2048 | |
openssl req -new -key jbzoo-com-server.key -out jbzoo-com-server.csr | |
openssl x509 -req -in jbzoo-com-server.csr -CA jbzoo-com-ca.crt -sha256 -CAkey jbzoo-com-ca.key -CAcreateserial -out jbzoo-com-server.crt -days 5000 | |
chmod 400 jbzoo-com-ca.crt; chmod 400 jbzoo-com-ca.key | |
# see | |
openssl x509 -in jbzoo-com-server.crt -text -noout | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment