Amazon web services 让';在AWS Linux上加密certbot
我是AWS新手,让我们对两者都加密。 我遵循和文章以及simpley运行这些命令Amazon web services 让';在AWS Linux上加密certbot,amazon-web-services,lets-encrypt,certbot,Amazon Web Services,Lets Encrypt,Certbot,我是AWS新手,让我们对两者都加密。 我遵循和文章以及simpley运行这些命令 wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto sudo cp certbot-auto /usr/bin/ 然后我运行这个命令 sudo /usr/bin/certbot-auto --nginx -d example.com -d www.example.com --debug 这给了我一个错误 对不起,我不知道如何在您的操作系统上引导
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
sudo cp certbot-auto /usr/bin/
然后我运行这个命令
sudo /usr/bin/certbot-auto --nginx -d example.com -d www.example.com --debug
这给了我一个错误
对不起,我不知道如何在您的操作系统上引导Certbot
您将需要安装操作系统依赖项、配置virtualenv和
手动运行pip安装。请看
更多信息
这到底意味着什么
如何在AWS linux上设置certbot?我创建了一个新的amazon linux 2 ec2实例,并为您测试了以下内容 以下步骤对我有效
Edit the file /usr/bin/certbot-auto to recognize your version of Linux:
$ sudo vim /usr/bin/certbot-auto
find this line in the file (likely near line nearr 780):
elif [ -f /etc/redhat-release ]; then
and replace whole line with this:
elif [ -f /etc/redhat-release ] || grep 'cpe:.*:amazon_linux:2' /etc/os-release > /dev/null 2>&1; then
Save and exit vim (type :wq to do that)
参考:
确保满足系统要求,您可以找到系统要求
还有certbot auto deploment的最佳实践。我以前没有使用过letsencrypt,让我给你读一读。你在使用amazon Linux吗当你说“这到底意味着什么”时,你的意思是你不明白它告诉你做什么?您知道如何在AWS Linux上安装操作系统依赖项吗?您需要虚拟环境和pip方面的帮助吗?还是别的?这里还有AWS提供的使用EPEL的LetsEncrypt说明: