Openssl 生成文件指令

来源:互联网 发布:手机远程桌面软件 编辑:程序博客网 时间:2024/05/18 04:01

openssl genrsa -out key.pem 2048openssl req -new -sha256 -key key.pem -out csr.csropenssl req -x509 -sha256 -days 365 -key key.pem -in csr.csr -out certificate.pemopenssl req -in csr.csr -text -noout | grep -i "Signature.*SHA256" && echo "All is well" || echo "This certificate will stop working in 2017! You must update OpenSSL to generate a widely-compatible certificate"


其中key.pem是私钥

0 0
原创粉丝点击