简体   繁体   English

无法启动apache,错误SSLCertificateFile接受一个参数,SSL服务器证书文件(`/ path / to / file'-PEM或DER编码)

[英]Unable to start apache, error SSLCertificateFile takes one argument, SSL Server Certificate file (`/path/to/file' - PEM or DER encoded)

I have setup the dispatcher in Apache for windows OS. 我已经在Windows OS的Apache中设置了调度程序。 After that trying to configure certificates to enable HTTPS in httpd.config file, then getting below exception every time. 之后,尝试配置证书以在httpd.config文件中启用HTTPS,然后每次都低于异常。 Not sure what's wrong here. 不知道这里出了什么问题。 Using apache 2.2.25 and generated key using openssl. 使用apache 2.2.25并使用openssl生成密钥。

Any help on this problem? 对这个问题有帮助吗?

在此处输入图片说明 在此处输入图片说明 在此处输入图片说明

Please use quotes for the file path: 请使用引号作为文件路径:

SSLCertificateFile "<path-to-file>"
SSLCertificateKeyFile "<path-to-file>"

The path you are using contains multiple "spaces" which probably are interpreted as another parameter. 您使用的路径包含多个“空格”,这些空格可能被解释为另一个参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM