Skip to content

Instantly share code, notes, and snippets.

@zdying
Created November 26, 2016 06:42
Show Gist options
  • Save zdying/b6d792073844629e4706a3ebb3735b0c to your computer and use it in GitHub Desktop.
Save zdying/b6d792073844629e4706a3ebb3735b0c to your computer and use it in GitHub Desktop.
创建CA根证书
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