【发布时间】:2018-09-23 19:07:14
【问题描述】:
1.我想做的事:
我有一个域 example.me,以及一个托管在我的 Windows Server 上的子域 text.example.me。它使用 php 5.6 运行 Apache
我想使用 Let's Encrypt 和这个工具 https://github.com/PKISharp/win-acme
安装 SSL 证书2.问题:
它似乎不起作用,尝试访问https://test.example.me时出现以下错误
此站点无法提供安全连接
3.到目前为止我做了什么
我遵循以下每一步: https://commaster.net/content/how-setup-lets-encrypt-apache-windows
这是我的httpd-ssl.conf
的内容<VirtualHost *:443>
ServerAdmin me@examole.com
ServerName text.example.me
DocumentRoot "D:/xampp/htdocs"
RewriteEngine On
# Redirect to the correct domain name
RewriteCond %{HTTP_HOST} !^test.example.me$ [NC]
RewriteRule ^/?(.*)$ https://test.example.me/$1 [NE,L,R=301]
Alias /.well-known D:/xampp/htdocs/.well-known
SSLEngine on
SSLCertificateFile "conf/ssl.crt/text.example.me-crt.pem"
SSLCertificateKeyFile "conf/ssl.key/test.example.me-key.pem"
SSLCertificateChainFile "conf/ssl.csr/ca-test.example.me-crt.pem"
</VirtualHost>
我的 80,443 端口可用,但 Skype 没有使用,所以这不是 问题。
这是我的httpd-vhosts.conf
的内容<VirtualHost *:80>
ServerAdmin me@example.me
ServerName test.example.me
RewriteEngine On
# Redirect to the HTTPS site
RewriteCond %{HTTPS} off
RewriteRule ^/?(.*)$ https://test.example.me/$1 [NE,L,R=301]
ErrorLog logs/slog.log
</VirtualHost>
【问题讨论】:
-
github.com/chings228/wacsautomation 我已经写了一个自动获取密钥的方法,让我们加密,看看它有帮助
标签: apache ssl lets-encrypt