Hi, I'm trying to follow the Let's Encrypt tutorial here, following the steps to the letter, however these instructions do not work.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt
I've set a new EB instance using PHP 7.3 running on 64bit Amazon Linux/2.9.13. SSH'd in, commands are all fine until the apache restart command:
sudo systemctl restart httpd
sudo: systemctl: command not found
Restarting Apache via other means works, but then when attempting to install certbot I'm seeing errors - missing dependencies:
sudo yum install -y certbot python2-certbot-apache
Error: Package: python2-six-1.9.0-0.el7.noarch (epel)
Requires: python-six >= 1.9.0
Available: python26-six-1.8.0-1.23.amzn1.noarch (amzn-main)
python-six = 1.8.0-1.23.amzn1
Error: Package: python2-josepy-1.3.0-2.el7.noarch (epel)
Requires: python2-setuptools
Error: Package: python2-certbot-apache-1.11.0-1.el7.noarch (epel-testing)
Requires: python-augeas
Error: Package: python2-certbot-1.11.0-1.el7.noarch (epel-testing)
Requires: python2-cryptography >= 1.2.3
Error: Package: python2-six-1.9.0-0.el7.noarch (epel)
Requires: python-six >= 1.9.0
Installing: python26-six-1.8.0-1.23.amzn1.noarch (amzn-main)
python-six = 1.8.0-1.23.amzn1
Error: Package: certbot-1.11.0-1.el7.noarch (epel-testing)
Requires: systemd
Error: Package: python2-acme-1.11.0-1.el7.noarch (epel-testing)
Requires: pyOpenSSL >= 0.13.1
Installing: python26-pyOpenSSL-0.10-2.8.amzn1.x86_64 (amzn-main)
pyOpenSSL = 0.10-2.8.amzn1
Error: Package: python2-acme-1.11.0-1.el7.noarch (epel-testing)
Requires: python2-pyasn1
Error: Package: python2-requests-2.6.0-0.el7.noarch (epel)
Requires: python-requests >= 2.6.0
Installing: python26-requests-1.2.3-5.10.amzn1.noarch (amzn-main)
python-requests = 1.2.3-5.10.amzn1
Error: Package: python2-acme-1.11.0-1.el7.noarch (epel-testing)
Requires: python2-cryptography
Error: Package: python2-josepy-1.3.0-2.el7.noarch (epel)
Requires: python2-cryptography
Error: Package: python2-acme-1.11.0-1.el7.noarch (epel-testing)
Requires: pyOpenSSL >= 0.13.1
Available: python26-pyOpenSSL-0.10-2.8.amzn1.x86_64 (amzn-main)
pyOpenSSL = 0.10-2.8.amzn1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Note: I've tried both "you could try..." suggestions, but neither make any difference, and an attempt to run certbot confirms it's definitely not installed.
Until now I'd been using certbot-auto with success, however the deprecation of that has got me in a bit of a bind. It's really frustrating when the AWS docs don't actually yield results, so any help would be really appreciated!
Edited by: jwbrown83 on Jan 11, 2021 11:36 PM