Created
November 26, 2016 06:42
-
-
Save zdying/b6d792073844629e4706a3ebb3735b0c to your computer and use it in GitHub Desktop.
创建CA根证书
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
echo "Create the Root Key ..." | |
openssl genrsa -out rootCA.key 2048 | |
echo "self-sign this certificate ..." | |
SUBJECT="/C=CN/ST=BeiJing/L=HaiDian/O=hiipack/OU=DEV/CN=hiipack/[email protected]" | |
openssl req -x509 -new -subj $SUBJECT -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment