我正在尝试使用在Windows 10上运行的Xampp v3.2.2来运行https。
我使用letsencrypt-win-simple v1.9.3生成证书,这是成功的。
制作了所有三个证书文件:
制作完成后全部以:
开头----- BEGIN CERTIFICATE -----
并以:
结束----- END CERTIFICATE -----
在我的httpd-ssl.conf的VirtualHost部分,我有以下内容:
<VirtualHost _default_:443>
ServerAdmin ******@gmail.com
ServerName home.mywebsite.nl
RewriteEngine On
# Redirect to the correct domain name
RewriteCond %{HTTP_HOST} !^home.mywebsite.nl$ [NC]
RewriteRule ^/?(.*)$ https://home.mywebsite.nl/$1 [NE,L,R=301]
Alias /.well-known C:/xampp/htdocs/.well-known
SSLEngine on
SSLCertificateFile "C:/Users/<**user**>/AppData/Roaming/letsencrypt-win-simple/httpsacme-v01.api.letsencrypt.org/home.mywebsite-crt.pem"
SSLCertificateKeyFile "C:/Users/<**user**/AppData/Roaming/letsencrypt-win-simple/httpsacme-v01.api.letsencrypt.org/home.mywebsite.nl-key.pem"
SSLCertificateChainFile "C:/Users/<**user**/AppData/Roaming/letsencrypt-win-simple/httpsacme-v01.api.letsencrypt.org/ca-<**hex**>-crt.pem"
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite...
在此之后我尝试启动appache但是出错了。运行时
C:\ xampp \ apache \ bin&gt; cmd中的httpd我收到以下错误:
c:\xampp\apache\bin>httpd
AH00526: Syntax error on line 134 of C:/xampp/apache/conf/extra/httpd-ssl.conf:
SSLCertificateFile: file 'C:/Users/<**user**>/AppData/Roaming/letsencrypt-win-simple/httpsacme-v01.api.letsencrypt.org/home.mywebsite-crt.pem'
does not exist or is empty
任何人都可以帮我解决这个问题吗?