我是https新手(使用SSL的HTTP )。我已经成功地生成了一个自签名证书文件,并将以下行添加到apache conf文件中:
SSLEngine on
SSLCertificateFile /path/to/cert/file/myfile.crt
SSLCertificateKeyFile /path/to/key/file/myfile.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown我遇到的问题是,当我尝试重新启动我的服务器时,我得到了以下错误,并对为什么它无法读取它感到困惑:
Starting web server apache2
Syntax error on line 1 of /path/to/cert/file/myfile.crt:
Invalid command 'MIIDtTCCAx6gAwIBAgIJAOnu0fcwBt1BMA0GCSqGSIb3DQEBBQUAMIGZMQswCQYD', perhaps misspelled or defined by a module not included in the server configuration
...fail!有什么想法吗?
发布于 2010-07-01 23:44:12
也许它试图将证书文件解释为脚本。crt文件是可执行文件吗?
发布于 2014-03-25 18:54:46
伙计,这已经过时了..好吧,我想你应该从一开始就有一个好的方法。只是谷歌apache2 ssl的方法。
apache可能没有加载ssl模块。在debian上,您可以尝试使用apache2ctl -M列出所有已加载的模块。
https://stackoverflow.com/questions/3159347
复制相似问题