如何使用中间证书创建PKCS12文件?

huangapple 未分类评论41阅读模式
英文:

How to create a PKCS12 file with intermediate certificates?

问题

我成功地使用以下命令创建了一个PKCS12文件:

openssl pkcs12 -export -in foo.crt -inkey bar.key -out out.p12

然而,SSLChecker(https://decoder.link/sslchecker)显示证书链中没有包含任何中间证书。我从SSL提供商那里获得了一个ca-bundle文件。是否有办法将此文件转换为PKCS12格式?

我需要将其用于一个使用SSL保护的Spring Boot服务器。那么可能也可以使用JKS文件格式?

提前致谢!

英文:

I successfully managed to create a PKCS12 file with the following command:

openssl pkcs12 -export -in foo.crt -inkey bar.key -out out.p12

However SSLChecker (https://decoder.link/sslchecker) shows that the chain doesn't contain any intermediate certificates. I got an ca-bundle file from my SSL provider. Is there anyway to convert this file to the PKCS12 format?

I need this for a ssl secured spring boot server. So maybe a JKS file would work aswell?

Thanks in advance!

huangapple
  • 本文由 发表于 2020年7月24日 23:29:35
  • 转载请务必保留本文链接:https://java.coder-hub.com/63076721.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定