即使文件在那里,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
输入:
须藤ln -s /etc/lego/certificates/blah.crt /opt/bitnami/apps/mattermost/conf/certs/server.crt
须藤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/conf/vhosts/mattermost.conf:17中使用“ listen ... ssl”指令
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:[:非法号码:
/opt/bitnami/nginx/scripts/ctl.sh:Nginx无法启动
受监控的nginx
我想查看我的网站并使其与HTTPS一起运行。
最佳答案
解决了!
须藤ln -sf /opt/bitnami/letsencrypt/certificates/YOUR_DOMAIN.crt /opt/bitnami/apps/mattermost/conf/certs/server.crt
须藤ln -sf /opt/bitnami/letsencrypt/certificates/YOUR_DOMAIN.key /opt/bitnami/apps/mattermost/conf/certs/server.key
sudo /opt/bitnami/ctlscript.sh重新启动nginx
关于ssl - 最重要的Bitnami AWS AMI:在AWS上为nginx实现letencrypt SSL时遇到问题,但无法弄清楚如何使其工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57585249/