cer、pvk 和 pfx 文件之间有什么区别?
cer、pvk 和 pfx 文件之间有什么区别?另外,我要保留哪些文件以及我应该将哪些文件提供给我的交易对手?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
cer、pvk 和 pfx 文件之间有什么区别?另外,我要保留哪些文件以及我应该将哪些文件提供给我的交易对手?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
Windows 使用 X.509 证书的 .cer 扩展名。这些可以是“二进制”(ASN.1 DER),也可以使用 Base-64 进行编码并应用页眉和页脚 (PEM); Windows 都会识别其中之一。要验证证书的完整性,您必须使用颁发者的公钥检查其签名......而这又是另一个证书。
Windows 使用 .pfx 作为 PKCS #12 文件。该文件可以包含各种加密信息,包括证书、证书链、根权限证书和私钥。其内容可以进行加密保护(使用密码),以保持私钥的私密性并保持根证书的完整性。
Windows 使用 .pvk 作为私钥文件。
我不确定 Windows 遵循什么标准(如果有)。希望它们是 PKCS #8 编码密钥。Emmanuel Bourg 报告说这些是专有格式。一些文档 可用。您永远不应该泄露您的私钥。它们包含在 .pfx 和 .pvk 文件中。
通常,您仅与其他方交换您的证书 (.cer) 和任何中间颁发者的证书(即除根 CA 之外的所有 CA 的证书)。
Windows uses .cer extension for an X.509 certificate. These can be in "binary" (ASN.1 DER), or it can be encoded with Base-64 and have a header and footer applied (PEM); Windows will recognize either. To verify the integrity of a certificate, you have to check its signature using the issuer's public key... which is, in turn, another certificate.
Windows uses .pfx for a PKCS #12 file. This file can contain a variety of cryptographic information, including certificates, certificate chains, root authority certificates, and private keys. Its contents can be cryptographically protected (with passwords) to keep private keys private and preserve the integrity of root certificates.
Windows uses .pvk for a private key file.
I'm not sure what standard (if any) Windows follows for these. Hopefully they are PKCS #8 encoded keys.Emmanuel Bourg reports that these are a proprietary format. Some documentation is available.You should never disclose your private key. These are contained in .pfx and .pvk files.
Generally, you only exchange your certificate (.cer) and the certificates of any intermediate issuers (i.e., the certificates of all of your CAs, except the root CA) with other parties.
以下是我个人的超浓缩笔记,就目前与我相关的主题而言,供任何感兴趣的人使用:
“身份/密钥存储”包含私人身份证书;文件方面,
然而,它们是相同的。
Here are my personal, super-condensed notes, as far as this subject pertains to me currently, for anyone who's interested:
"Identity/Key Stores" contain private, identity certs; file-wise,
however, they are the same.
在Windows平台中,这些文件类型用于证书信息。通常用于 SSL 证书和公钥基础设施 (X.509)。
CER文件用于存储X.509证书。通常用于 SSL 认证,以验证和识别 Web 服务器的安全性。该文件包含有关证书所有者和公钥的信息。 CER 文件可以是二进制 (ASN.1 DER) 或使用包含页眉和页脚的 Base-64 编码 (PEM),Windows 将识别这两种布局中的任何一种。
代表私钥。 Windows 使用 PVK 文件来存储私钥,以便在各种 Microsoft 产品中进行代码签名。 PVK 是专有格式。
个人交换格式,是 PKCS12 文件。其中包含各种加密信息,例如证书、根权限证书、证书链和私钥。它通过密码进行加密保护,以保持私钥的私密性并保持根证书的完整性。 PFX 文件还用于各种 Microsoft 产品,例如 IIS。
有关更多信息,请访问:证书文件: .Cer x .Pvk x .Pfx
In Windows platform, these file types are used for certificate information. Normally used for SSL certificate and Public Key Infrastructure (X.509).
CER file is used to store X.509 certificate. Normally used for SSL certification to verify and identify web servers security. The file contains information about certificate owner and public key. A CER file can be in binary (ASN.1 DER) or encoded with Base-64 with header and footer included (PEM), Windows will recognize either of these layout.
Stands for Private Key. Windows uses PVK files to store private keys for code signing in various Microsoft products. PVK is proprietary format.
Personal Exchange Format, is a PKCS12 file. This contains a variety of cryptographic information, such as certificates, root authority certificates, certificate chains and private keys. It’s cryptographically protected with passwords to keep private keys private and preserve the integrity of the root certificates. The PFX file is also used in various Microsoft products, such as IIS.
for more information visit:Certificate Files: .Cer x .Pvk x .Pfx
我实际上不久前遇到过这样的事情... 在 msdn 上查看(参见第一个答案)
总结:
我根据评论的建议总结了页面中的信息。
I actually came across something like this not too long ago... check it out over on msdn (see the first answer)
in summary:
I summarized the info from the page based on the suggestion from the comments.