网站由http切换到https
2017-11-17 14:18
323 查看
参考教程
https://www.dexcoder.com/selfly/article/4949;jsessionid=484F40F28718AE7BC9B5F0988AACD0CE https://imququ.com/post/letsencrypt-certificate.html
自带备注
openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config <(cat /etc/pki/tls/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:flyonline.top,DNS:www.flyonline.top")) > domain.csr
server
{
listen 80;
server_name www.flyonline.top;
location ^~ /.well-known/acme-challenge/ {
alias /home/ec2-user/ssl/challenges/;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server
{
listen 443;
server_name www.flyonline.top;
ssl on;
ssl_certificate /home/ec2-user/ssl/chained.pem;
ssl_certificate_key /home/ec2-user/ssl/domain.key;
}
python acme_tiny.py --account-key ./account.key --csr ./domain.csr --acme-dir /home/ec2-user/ssl/challenges/ > ./signed.crt
https://www.dexcoder.com/selfly/article/4949;jsessionid=484F40F28718AE7BC9B5F0988AACD0CE https://imququ.com/post/letsencrypt-certificate.html
自带备注
openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config <(cat /etc/pki/tls/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:flyonline.top,DNS:www.flyonline.top")) > domain.csr
server
{
listen 80;
server_name www.flyonline.top;
location ^~ /.well-known/acme-challenge/ {
alias /home/ec2-user/ssl/challenges/;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server
{
listen 443;
server_name www.flyonline.top;
ssl on;
ssl_certificate /home/ec2-user/ssl/chained.pem;
ssl_certificate_key /home/ec2-user/ssl/domain.key;
}
python acme_tiny.py --account-key ./account.key --csr ./domain.csr --acme-dir /home/ec2-user/ssl/challenges/ > ./signed.crt
相关文章推荐
- 用阿里云的免费 SSL 证书让网站从 HTTP 换成 HTTPS
- 【原创】免费申请SSL证书【用于HTTPS,即是把网站从HTTP改为HTTPS,加密传输数据,保护敏感数据】
- iis 设置网站前台后台 http和https分离访问
- 用阿里云的免费 SSL 证书让网站从 HTTP 换成 HTTPS
- HTTP 网站升级到 HTTPS 。
- PHP网站http替换https
- https的本地测试环境搭建 http网站转换成https网站之后的问题
- 关于HTTP和HTTPS相互转换的问题--解决根据过滤器自动切换功能--可用
- Asp.Net 中 HTTP 和 HTTPS 切换
- 用阿里云的免费SSL 证书让网站从HTTP换成HTTPS
- 怎样把网站从http转换成https
- 测试网站兼容性:http://browsershots.org/ 和https://www.browserstack.com/
- 如何用HttpWebRequest通过代理IP post 到https的网站?
- memcached 官方网站:http://www.danga.com/memcached/ —c++https://github.com/gwhalin/Memcached-Java-Client/downloads--java
- windows server2008CA证书服务器安装及https网站类型的绑定 http://www.ip-tcp.com
- https页面与http页面自动切换----SSL解决方案
- CloseableHttpClient加载证书来访问https网站(转载)
- iOS UIWebView 载入https 网站出现NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL,
- https页面与Http页面自动切换-SSL解决方案
- http切换https后redirect跳转过滤