Letsencrypt-auto won't see the Apache vhosts anymore

Same thing for me, was rather painful. Solved it by doing it manually…

I don’t think it is the recommended way to do it, but what the hell, it works.

stop apache

In order to avoid conflict with the standalone servern You have to stop apache. I told you this is not the recommended way.

Oh, yeah, and you might double check that ssl is on with a2enmod ssl

generate certificates

/letsencrypt-auto certonly --standalone -d ryogasp.com -d www.ryogasp.com

duplicate your website conf.

cd /etc/apache2/sites-available/
cp ryogasp.com.conf ryogasp.com-ssl.conf 

The important part of the message is the path of the cert chain:

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at
   /etc/letsencrypt/live/ryogasp.com/fullchain.pem. 

edit the -ssl.conf file

before it should look like this

<VirtualHost 46.105.17.17:80>
        ServerName ryogasp.com
        ServerAlias www.ryogasp.com
        DocumentRoot /home/hostinguser/ryogasp.com/www
        <Directory /home/hostinguser/ryogasp.com/www>
                Require all granted
                AllowOverride All
        </Directory>
        CustomLog /var/log/apache2/ryogasp.com.log combined
</VirtualHost>

make it look like that

<VirtualHost 46.105.17.17:443>
        ServerName ryogasp.com
        ServerAlias www.ryogasp.com
        DocumentRoot /home/hostinguser/ryogasp.com/www
        <Directory /home/hostinguser/ryogasp.com/www>
                Require all granted
                AllowOverride All
        </Directory>
        Include /etc/letsencrypt/options-ssl-apache.conf
        SSLCertificateFile /etc/letsencrypt/live/ryogasp.com/cert.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/ryogasp.com/privkey.pem
        SSLCertificateChainFile /etc/letsencrypt/live/ryogasp.com/fullchain.pem
        CustomLog /var/log/apache2/ryogasp.com.log combined
</VirtualHost>

Enable the vhost file

a2ensite ryogasp.com-ssl

Start apache

/etc/init.d/apache2 start