ssl配置
20240611配置ssl;(使用acme) https://github.com/acmesh-official/acme.sh
安装、配置、执行、生成证书、copy安装证书、
curl https://get.acme.sh | sh -s email=my@example.com
export Ali_Key="LTAI5tCTUecKJm6t5xyvNhBE"
export Ali_Secret="xiDOIYcEEZNJeZIn8hQnIph4zuj1Pw"
source ~/.bashrc
dns方式: acme.sh --issue --dns dns_ali -d *.hntlgcgl.site
http方式(使用):acme.sh --issue -d book.hntlgcgl.com --webroot /opt/zytl/dist/
http方式(使用):acme.sh --issue -d book.hntlgcgl.com --nginx 报错 Can not find nginx conf.
acme.sh --install-cert -d book.hntlgcgl.com \
--key-file /opt/keyfile/key.pem \
--fullchain-file /opt/keyfile/cert.pem \
--reloadcmd "service nginx force-reload"
nginx添加with-http_ssl_module模块;
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
make