我怎么能转换PFX证书文件使用的Apache在Linux服务器上? [英] How can I convert a PFX certificate file for use with Apache on a linux server?
本文介绍了我怎么能转换PFX证书文件使用的Apache在Linux服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何转换PFX证书文件使用的Apache在Linux服务器上?
How can I convert a PFX certificate file for use with Apache on a linux server?
我创建从Windows证书服务的PFX。该PFX包含整个证书链。 (这仅仅是一个根和主证书,无中间。)
I created the PFX from Windows Certificate Services. The PFX contains the entire certificate chain. (Which is just a root and the main cert, no intermediate.)
,领导着我明智的。
推荐答案
通过 OpenSSL的你可转换PFX到Apache兼容的格式旁边的命令:
With OpenSSL you can convert pfx to Apache compatible format with next commands:
openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.cer
openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key
首先命令提取公共密钥 domain.cer
。结果
第二个命令提取私钥 domain.key
。
更新与您的Apache配置文件:
Update your Apache configuration file with:
<VirtualHost 192.168.0.1:443>
...
SSLEngine on
SSLCertificateFile /path/to/domain.cer
SSLCertificateKeyFile /path/to/domain.key
...
</VirtualHost>
这篇关于我怎么能转换PFX证书文件使用的Apache在Linux服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文