相关文章阅读记录:
https://blog.csdn.net/jiftlixu/article/details/19836405
https://www.cnblogs.com/qiuxiangmuyu/p/6195215.html
里面有保存P12文件代码。
https://blog.csdn.net/jinhill/article/details/17612273
https://blog.csdn.net/sun_promise/article/details/53010392
https://blog.csdn.net/innost/article/details/44081147
https://www.cnblogs.com/oc-bowen/p/5896041.html
https://blog.csdn.net/mangiguo/article/details/49100983
两者都可以用来加密数据,但他们有什么区别呢?
简单来说,二者在加密上使用的技术不同:
secret key 是对称加密算法(Symmetric encryption)中的概念,此算法中信息的发送者和接受者拥有相同的secret key来加密和解密信息.
private key 是非对称加密(Asymmetric Encryption)算法中的概念,与之对应的是public key,此算法public key是公之于众的,任何人都可以下载,而private key只有自己拥有,发送者使用接收者公之于众的public key加密信息,接收者收到之后用只有自己拥有的secret key来解密信息。
https://www.cnblogs.com/piperck/p/6132467.html
https://blog.csdn.net/hacode/article/details/43851065
首先生成秘钥对(包含私钥和公钥,可以只生成私钥),用私钥生成csr文件。CA进行认证,需要使用CA的证书和私钥,然后生成用CA私钥签名的用户证书。最终把用户证书和CA证书和私钥合成P12文件。所以CA最终给用户的内容应该包含用户证书和CA证书链。用户用自己保留的私钥把CA给的用户证书和CA证书链合成p12文件。
https://blog.csdn.net/ayang1986/article/details/80810050
https://blog.csdn.net/edmond999/article/details/81700395
https://jackstromberg.com/
https://jackstromberg.com/2013/01/generating-a-pkcs12-file-with-openssl/
https://program-think.blogspot.com/2010/02/introduce-digital-certificate-and-ca.html
https://www.jb51.net/article/91620.htm
本文讲解证书链的作用,消化一下。
https://www.gworg.com/problems/834.html
Note: some software requires you to put your site's certificate (e.g. example.com.crt
) and your chain certificates (e.g. example.com.chain.crt
) in separate files, while other software requires you to put your chain certificates after your site's certificate in the same file.
https://whatsmychaincert.com/
http://service.oray.com/question/4985.html
PKCS 全称是 Public-Key Cryptography Standards ,是由 RSA 实验室与其它安全系统开发商为促进公钥密码的发展而制订的一系列标准,PKCS 目前共发布过 15 个标准。 常用的有:
X.509是常见通用的证书格式。所有的证书都符合为Public Key Infrastructure (PKI) 制定的 ITU-T X509 国际标准。
https://www.cnblogs.com/blogzhangwei/p/10145167.html
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.1.0/com.ibm.mq.doc/sy10670_.htm