Install fails on Amazon Linux

Hello @Veraxus,
I encountered this same warning with amazon-linux-ami/2015.09
> WARNING: Amazon Linux support is very experimental at present...
> if you would like to work on improving it, please ensure you have backups
> and then run this script again with the --debug flag!

As ec2-user, I was able to manually install the new ssl certificates:

  • First install python 2.7 with development libraries. Header libs are needed to compile letsencrypt.
    sudo yum install python27
    sudo yum install python27-devel

  • Update python symlinks to use 2.7
    From:
    /etc/alternatives/python -> /usr/bin/python2.6
    To:
    /etc/alternatives/python -> /usr/bin/python2.7

  • Install pip for 2.7
    sudo curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python2.7

  • Install setuptools for 2.7
    sudo easy_install setuptools
    To update pip:
    sudo pip install setuptools --upgrade

  • Stop apache service
    sudo httpd -k stop

  • Add '--debug' flag to ./letsencrypt command
    sudo ./letsencrypt-auto --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory certonly -d yourdomain.name -d www.yourdomain.name -v --debug

  • Follow setup dialog, acept agreement, etc
    Certificates are saved in /etc/letsencrypt/live/yourdomain.name/

  • Modify apache's ssl configuration
    nano /etc/conf.d/ssl.conf (common path for CentOS/RHEL)

  • Verify new settings
    httpd -S

  • Start apache service
    httpd -k start

Enjoy your fresh encryption!

1 Like