即使文件在那里,nginx 也无法正常运行。
我一步一步地遵循本教程:https ://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/
我也研究了这些。 https://community.bitnami.com/t/trouble-installing-new-certificates/64634?source_topic_id=70529
https://community.bitnami.com/t/unable-to-install-ssl-certificate/57650?source_topic_id=70529
输入: sudo ln -s /etc/lego/certificates/blah.crt /opt/bitnami/apps/mattermost/conf/certs/server.crt sudo ln -s /etc/lego/certificates/blah.key /opt/bitnami /apps/mattermost/conf/certs/server.key sudo /opt/bitnami/ctlscript.sh 重启 nginx
结果:未监控的 nginx /opt/bitnami/nginx/scripts/ctl.sh:Nginx 停止了 nginx:[警告]“ssl”指令已弃用,在 /opt/bitnami/nginx 中使用“listen ... ssl”指令代替/conf/vhosts/mattermost.conf:17 nginx:[emerg] 无法加载证书“/opt/bitnami/apps/mattermost/conf/certs/server.crt”:BIO_new_file() 失败(SSL:错误:02001002:系统库:fopen:没有这样的文件或目录:fopen('/opt/bitnami/apps/mattermost/conf/certs/server.crt','r')错误:2006D080:BIO 例程:BIO_new_file:没有这样的文件)/opt/ bitnami/nginx/scripts/ctl.sh: 77: [: Illegal number: /opt/bitnami/nginx/scripts/ctl.sh : Nginx 无法启动被监控的 nginx
我想查看我的网站并让它使用 HTTPS 运行。