密码学,TLS(SSL)- TLS(SSL)中,公钥、私钥、证书的后缀名

为什么有这个问题

工作中用到了pfx -> pem, 再从pem获取rsa秘钥。(->别名为转换)

他们什么关系?

  1. SSL中,公钥、私钥、证书的后缀名都是些啥? - 沃通WoTrus的回答 - 知乎
    https://www.zhihu.com/question/29620953/answer/1287453212
  2. https://stackoverflow.com/questions/2292495/what-is-the-difference-between-a-cer-pvk-and-pfx-file/
  3. https://serverfault.com/questions/9708/what-is-a-pem-file-and-how-does-it-differ-from-other-openssl-generated-key-file
  4. https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail
  5. google和wikipedia搜一下这些后缀

个人理解

pfx(微软的,二进制的,一般含有私钥和证书。It is commonly used to bundle a private key with its X.509 certificate or to bundle all the members of a chain of trust(还可以保存其他信息,但我目前没见过))-> pem(base64文本编码的,有私钥和证书) -> 那这样就可以提取私钥咯!
怎么这么多标准!密码学真复杂

posted @ 2020-10-02 01:47  Rocin  阅读(580)  评论(0编辑  收藏  举报