1,openssl下载地址:http://slproweb.com/products/Win32OpenSSL.html

win10 openssl生成证书

 

2,openssl安装后配置好环境变量

3,openssl创建证书

打开cmd
$>openssl genrsa -out private-key.pem 1024 ##创建根证书私钥
$>openssl req -new -out ca-req.csr -key private-key.pem #创建证书请求
$>openssl x509 -req -in ca-req.csr -out ca-cert.pem -signkey private-key.pem -days 3650 #自签署根证书
$>openssl pkcs12 -export -clcerts -in ca-cert.pem -CSP "Microsoft Enhanced RSA and AES Cryptographic Provider" -inkey private-key.pem -out cert.pfx #导出这PKCS12格式的证书
$>openssl rsa -in private-key.pem -pubout -out pubkey.pem #提取公钥

 win10 openssl生成证书

 

相关文章:

  • 2022-01-01
  • 2021-11-06
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2021-12-06
  • 2022-12-23
  • 2021-08-29
相关资源
相似解决方案