[英]Apache2 SSL certificate file issue
I am new to https ( HTTP using SSL). 我是https的新手(使用SSL的HTTP)。 I have managed to generate a self signed certificate file and have added the following lines to the apache conf file:
我设法生成了一个自签名证书文件,并将以下行添加到了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
The issue I am having is that when I try to restart my server I get the following error and am confused why it is not able to read it: 我遇到的问题是,当我尝试重新启动服务器时,出现以下错误,并对为什么无法读取它感到困惑:
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!
Any ideas? 有任何想法吗?
Maybe it tries to interpret the certificate file as a script. 也许它试图将证书文件解释为脚本。 Is the crt file executable?
crt文件可执行吗?
man this is outdated.. well i guess you should start from the beginning with a good howto. 男人,这已经过时了..嗯,我想您应该从一开始就准备好方法。 just google apache2 ssl howto.
只是谷歌apache2 ssl howto。
propably apache has no ssl module loaded. 可能是apache没有加载ssl模块。 on debian you could try apache2ctl -M to list all loaded modules.
在debian上,您可以尝试apache2ctl -M列出所有已加载的模块。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.