Troubleshooting Let’s Encrypt on AMI Linux 2017.03

Troubleshooting Let’s Encrypt on AMI Linux 2017.03

I used this tutorial as my guide:

https://nouveauframework.org/blog/installing-letsencrypts-free-ssl-amazon-linux/

And it was working well, until I ran the initial certbot-auto command and received the following error:

python setup.py egg_info" failed with error code 1 in /tmp/pip-build-eIjmRg/cffi You are using pip version 8.0.3, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

I checked the version of pip and updated AMI; still the same error. Above the error listed above was a message that gcc wasn’t installed, so I checked that. When I typed

sudo yum install gcc

I received a message that gcc was already installed. But, simply typing

gcc -v

told me that the command was not found. So I headed to /usr/bin and checked the program listing. gcc48 was there, so I typed:
sudo cp -r gcc48 gcc
(the -r was unnecessary since gcc48 is a file, not a folder). Boom. The script ran without issues.

The only other quirk is that instead of entering the SSL directory data into the ssl.conf file listed in the tutorial, I also typed it into /etc/httpd/conf/httpd.conf under
<VirtualHost _default_:443>
With these two tweaks, the site loaded correctly with the happy green lock.

TLDR: if gcc isn’t installed but it is, copy gcc48 (or whatever version) and rename it gcc.

If you have any questions, feel free to post in the comments.

Advertisements

One thought on “Troubleshooting Let’s Encrypt on AMI Linux 2017.03

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s