SSL 证书安装....pfx、.cer 和.txt 文件?
虽然我对 SSL 或安装 SSL 证书一无所知,但我确信 Google 为我提供的有关 CentOS、SSL 证书和 Apache 的众多结果之一将会有所帮助。
但是,为此项目提供的证书文件是 .pfx 文件、.cer(证书)文件和 .txt(显然是证书请求)文件,我找到的文章中都没有提到这些文件。他们都谈论 .crt 和 .key 文件。
我是否应该通过某种特定的方式(大概通过 openssl)将这些文件转换为可以在 Apache 中使用的文件?
While I know nothing about SSL or installing SSL Certificates, I'm sure one of the many results Google will give me for CentOS, SSL certs and Apache would help.
However, the certificate files which have been provided for this project are a .pfx file, .cer (the certificate) file and a .txt (apparently a certificate request) file, none of which are mentioned in the articles I'm finding.. they all talk of .crt and .key files.
Is there a particular way I should be converting these files, presumably via openssl, into something I can use in Apache?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
.pfx
文件往往是 PKCS#12 文件(其中包含私钥、证书以及可能的颁发者证书链)。它们有时被称为.p12
。 OpenSSL 可以从 PKCS#12 文件中提取私钥和证书(通过其openssl pkcs12
命令),您应该能够通过 Google 或有关 SO 的其他问题找到执行此操作的文档。.pfx
files tend to be PKCS#12 files (which will contain the private key, the certificate and possibly the issuer certificate chain). They're sometimes called.p12
. OpenSSL can extract private key and certificate from PKCS#12 files (via itsopenssl pkcs12
command), you should be able to find documentation to do this, via Google or other questions on SO.