When trying to reissue a certificate I get an error message:
│ Cannot find a cert or key directive in │ │ /files/etc/apache2/sites-available/subdomain.conf/VirtualHost. │ │ VirtualHost was not modified │
Unable to find cert and/or key directives
I’m using Apache2 on Ubuntu server 15.10, and had no problem so far with Let’s Encrypt to issue/renew certificates with my conf.
I added a new site to host, and got this message on the last site I created.
If I remove it from the list of existing web sites identified, the same error is reported on the next .conf file.
Here is the content of the subdomain.conf file
<VirtualHost *:80> Redirect permanent "/" "https://subdomain.mysite.tld/" </VirtualHost> <VirtualHost *:443> ServerName subdomain.mysite.tld ErrorLog /var/log/apache2/mysite-error.log CustomLog /var/log/apache2/mysite-access.log combined ProxyPassMatch "^/(sockjs\/.*\/websocket)$" "ws://127.0.0.1:8081/$1" ProxyPass "/" "http://localhost:8081/" ProxyPassReverse "/" "http://localhost:8081/" ProxyPreserveHost On </VirtualHost>
Do someone have a idea on what’s happening ?