-
-
Save linuxoid69/c0b9c66ee369abe91a7a1cdc22c71a6f to your computer and use it in GitHub Desktop.
ssl self-sign
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
# create CA key and cert | |
openssl genrsa -out rootCA.key 2048 | |
openssl req -x509 -new -key rootCA.key -days 10000 -out rootCA.crt | |
# create host key, csr and sing host cert CA | |
openssl genrsa -out server101.mycloud.key 2048 | |
openssl req -new -key server101.mycloud.key -out server101.mycloud.csr | |
openssl x509 -req -in server101.mycloud.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out server101.mycloud.crt -days 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment