gpt4 book ai didi

ssl - Mattermost Bitnami AWS AMI : Issues with implementing letsencrypt SSL for nginx on AWS but can’t figure out how to make it work

转载 作者:太空宇宙 更新时间:2023-11-03 14:25:31 28 4
gpt4 key购买 nike

即使文件在,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.crtsudo ln -s/etc/lego/certificates/blah.key/opt/bitnami/apps/mattermost/conf/certs/server.keysudo/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') error:2006D080:BIO routines:BIO_new_file:no such file)/opt/bitnami/nginx/scripts/ctl.sh: 77: [: 非法数字:/opt/bitnami/nginx/scripts/ctl.sh : Nginx 无法启动监控nginx

我想查看我的网站并让它使用 HTTPS 运行。

最佳答案

已解决!

sudo ln -sf/opt/bitnami/letsencrypt/certificates/YOUR_DOMAIN.crt/opt/bitnami/apps/mattermost/conf/certs/server.crtsudo ln -sf/opt/bitnami/letsencrypt/certificates/YOUR_DOMAIN.key/opt/bitnami/apps/mattermost/conf/certs/server.keysudo/opt/bitnami/ctlscript.sh 重启 nginx

关于ssl - Mattermost Bitnami AWS AMI : Issues with implementing letsencrypt SSL for nginx on AWS but can’t figure out how to make it work,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57585249/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com