
certbot 정지에서 재설치
소개
certbot이 죽었습니다. .
보다는 프로덕션 환경에서 운용하고 있던 https 통신의 증명증이 갑자기 파기되어 되돌리는데 힘들었기 때문에 비망록.
개발 환경
루비 2.5.7
Rails 5.2.3
AWS ec2
nginx
puma
절차
cd ~
rm -r -f certbot
git clone https://github.com/certbot/certbot.git
cd certbot/
chmod a+x certbot-auto
sudo ./certbot-auto --nginx --debug
※あとはyesに答えるだけ
오류 모음
오류①
오류 코드
Traceback (most recent call last):
File "<stdin>", line 27, in <module>
File "<stdin>", line 19, in create_venv
File "/usr/lib64/python2.7/subprocess.py", line 185, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
원인
개선 코드
alternatives --set python /usr/bin/python2.7
오류②
오류 코드
pkg_resources.DistributionNotFound: The 'virtualenv==15.1.0' distribution was not found and is required by the application
원인
개선 코드
sudo pip uninstall virtualenv
pip install virtualenv==15.1.0
오류③
오류 코드
pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application
원인
개선 코드
sudo easy_install pip == 9.0.3
오류④
오류 코드
Skipping bootstrap because certbot-auto is deprecated on this system.
./certbot-auto has insecure permissions!
To learn how to fix them, visit https://community.letsencrypt.org/t/certbot-auto-deployment-best-practices/91979/
Your system is not supported by certbot-auto anymore.
Certbot cannot be installed.
Please visit https://certbot.eff.org/ to check for other alternatives.
원인
개선 코드
sudo wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/
sudo rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm
sudo yum install certbot python2-certbot-nginx
↓
sudo certbot --nginx
참고 사이트
htps // 요시노 린. 네 t/2018/09/10/ぇつぇ crypt-kano t-p
htps : // 이 m/_우우테카 t_22/있어 ms/14819 세 3d6 아 41 c0d6b2