Setup LetsEncrypt on Debian

Install LetsEncrypt Client git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt Obtain a Certificate Inside the nginx config, add this location block: location ~ /\.well-known/acme-challenge { root /var/www/html; } Reload Ngin...

Nginx配置HTTPS加密

# 建立保存目录 mkdir /etc/cert cd /etc/cert # 生成1024位加密的服务器私钥 openssl genrsa -out decode.li.key 1024 # 制作CSR证书申请文件 openssl req -new -key decode.li.key -out decode.li.csr You are about to be asked to enter information that will be incorporated into your certi...