This simple personal website is made by Andy.
https: https://www.tjcchen.cn
http( will be redirected to https ): http://www.tjcchen.cn
# pm2 start
pm2 --name https-server start npm -- start
# check centos version info
cat /etc/centos-release
# configure your certificate
yum install certbot
sudo certbot certonly --standalone -d www.tjcchen.cn
# key and cert path generated by certbot
Certificate is saved at: /etc/letsencrypt/live/www.tjcchen.cn-0001/fullchain.pem
Key is saved at: /etc/letsencrypt/live/www.tjcchen.cn-0001/privkey.pem
CA: /etc/letsencrypt/live/www.tjcchen.cn-0001/chain.pem
# aliyun cert directory
/ssl/cert.pem
/ssl/cert.key
/ssl/cert.cer
# check connecting status with openssl
openssl s_client -connect 182.92.180.143:443 -servername "www.tjcchen.cn" -tls1_2 | openssl x509 -noout -dates
# check cert info on port 443( on VPS )
openssl s_client -connect 127.0.0.1:443
# check network status
netstat -lnp
netstat -lnp | grep 443
Be sure to configure your security group 443 after adding certs: https://ecs.console.aliyun.com/securityGroupDetail/region/cn-beijing/groupId/sg-2zebrtqj5svzhl79grtg/detail/intranetIngress
Email: [email protected]
This project is licensed under the terms of the MIT License.