![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
https
Biu→Biu丶
这个作者很懒,什么都没留下…
展开
-
springboot之https服务器(生成keystore证书库及转cer证书)
一. 生成自签名证书 打开cmd 输入命令生成证书: keytool -genkeypair -alias tomcat_https -keypass 123456 -keyalg RSA -keysize 1024 -validity 365 -keystore ./https-java.keystore -storepass 123456 属性说明: -alias 别名 -keypass 指定生成密钥的密码 -keyalg 指定密钥使用的加密算法(如 RSA) -keysize 密钥大小 -val原创 2020-11-03 10:31:46 · 2961 阅读 · 0 评论 -
.keystore生成.cer及.pfx及.key
1. 生成.keystore 我的另一篇博客 2. .keystore转.cer keytool -exportcert -keystore server.keystore -rfc -file server1.cer -alias tomcat -storepass 123456 3. .keystore转.pfx 这里我没有找到更简便的方法, 找到的大佬希望指点一下。 我这里用代码转换: // .keystore转.pfx public class Text { public static原创 2020-12-24 11:53:56 · 1342 阅读 · 2 评论