openssl 创建 pfx 证书

openssl 创建 pfx 证书环境:centos7.6,openssl1.02k-fips生成私钥[root@ansible002keyfile]#opensslgenrsa-outserver.key1024GeneratingRSAprivatekey,1024bitlongmodulus……++++++…++++++eis65537(0x10001)生成证书请求文件,需要填写信息,例如:cn/gd/zh/sourcecode/bdc/www.a.com[root@

大家好,又见面了,我是你们的朋友全栈君。

环境: centos7.6, openssl 1.02k-fips
生成私钥

[root@ansible002 keyfile]# openssl genrsa -out server.key 1024
Generating RSA private key, 1024 bit long modulus
......++++++
...++++++
e is 65537 (0x10001)

生成证书请求文件,需要填写信息,例如:cn/gd/zh/sourcecode/bdc/www.a.com

[root@ansible002 keyfile]# openssl req -new -x509 -key server.key -out server.csr -days 3650 -subj /CN=example.com

自签名

[root@ansible002 keyfile]# openssl pkcs12 -export -out server.pfx -inkey server.key -in server.csr 
Enter Export Password:
Verifying - Enter Export Password:
[root@ansible002 keyfile]# ls
server.csr  server.key  server.pfx

参考文章:
创建openssl pfx证书文件

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/133851.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号