保存以下内容为.bat批处理文件,快速生成自己的根证书CA crt及私匙key:
1 | openssl ecparam -genkey -name secp384r1 | openssl ec -aes256 -out ca.key |
2 | openssl req -config openssl_root.cnf -new -x509 -sha384 -extensions v3_ca -key ca.key -out ca.crt -days 10800 |
3 | openssl x509 -noout -text - in ca.crt |