windows下apache配置ssl证书及问题处理

0
98

一、配置过程

https://www.cnblogs.com/h5av/p/10687765.html 参考这个链接

 Listen 8989
 SSLPassPhraseDialog  builtin
 SSLSessionCache        "shmcb:D:\ldcrm\apache\logs\ssl_scache(512000)"
 SSLSessionCacheTimeout  300
 #
 SSL Virtual Host Context
 #
 DocumentRoot "D:\ldcrm\www\crm"    
 ServerName  crm.sou11.cn:8989    
 SSLEngine on     SSLCertificateFile "D:\ldcrm\apache\cert\ crm.sou11.cn .crt"     SSLCertificateKeyFile "D:\ldcrm\apache\cert\crm.sou11.cn_key.key"     SSLCertificateChainFile "D:\ldcrm\apache\cert\ca_bundle.crt"  

二、问题解决

1.无法启动Apache服务,启动报错

CMD命令行 输入

cd D:\ldcrm\apache\bin

httpd.exe -t

或者直接 D:\ldcrm\apache\bin\httpd.exe -t ,这样可以直接查看存在哪些异常