I have an Apache2 webserver running on Ubuntu 16.04. After reading the documentation, I had successfully setup an SSL certificate on one of my websites using certbot.
My Apache server server several virtual websites from separate directories. An example of my site/drive layout is:
“www.example.com” is located in folder “/data/web/www.example.com”
“site2.example.com” is located in folder “/data/web/site2.example.com”
“site3.example.com” is located in folder “/data/web/site3.example.com”
I created a “/data/web/www.example.com/.well-known/acme-challenge” folder and made sure that apache would serve a document placed there. I successfully received a certificate for www.example.com using the following command:
certbot certonly --webroot -w /data/web/www.example.com -d www.example.com
*Note - I had to run the command from the folder “/data/web/www.example.com” for it to work! That wasn’t in the documentation anywhere.
After doing this, I wanted to add the other subdomains but keep getting errors. Since each of these subdomains exists in separate locations, I made a symbolic link in each of their root directories to “/data/web/www.example.com/.well-known”. I made sure apache would serve the test file again in one of the subdomains. Then I ran the following command from in the “/data/web/www.example.com” folder:
No luck. I get the following output for each subdomain:
local error: tls: no renegotiation
What am I doing wrong?