My domain is: nnk.lv, evn.nnk.lv
I ran this command:
sudo /usr/local/bin/certbot-auto --apache
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: nnk.lv
2: evn.nnk.lv
3: www.evn.nnk.lv
4: www.nnk.lv
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/nnk.lv.conf)
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/nnk.lv-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/evn.nnk.lv-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/evn.nnk.lv-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/nnk.lv-le-ssl.conf
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Enhancement redirect was already set.
Enhancement redirect was already set.
Enhancement redirect was already set.
Enhancement redirect was already set.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://nnk.lv,
https://evn.nnk.lv, https://www.evn.nnk.lv, and https://www.nnk.lv
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=nnk.lv
https://www.ssllabs.com/ssltest/analyze.html?d=evn.nnk.lv
https://www.ssllabs.com/ssltest/analyze.html?d=www.evn.nnk.lv
https://www.ssllabs.com/ssltest/analyze.html?d=www.nnk.lv
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/nnk.lv/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/nnk.lv/privkey.pem
Your cert will expire on 2019-10-15. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again with the "certonly" option. To non-interactively renew *all*
of your certificates, run "certbot-auto renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
My web server is (include version):
Apache/2.4.25 (Raspbian)
The operating system my web server runs on is (include version):
Raspbian
My hosting provider, if applicable, is:
Raspberry Pi 3B+
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
certbot 0.36.0
Additional Information
Sample Output of site SSL config
<IfModule mod_ssl.c>
<VirtualHost *:443>
DocumentRoot /var/www/webserver/nnk.lv
ServerName nnk.lv
ServerAlias www.nnk.lv
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/nnk.lv/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nnk.lv/privkey.pem
</VirtualHost>
</IfModule>
Configtest
sudo apachectl configtest
Syntax OK
apachectl -S
VirtualHost configuration:
*:443 is a NameVirtualHost
default server evn.nnk.lv (/etc/apache2/sites-enabled/evn.nnk.lv-le-ssl.conf:2)
port 443 namevhost evn.nnk.lv (/etc/apache2/sites-enabled/evn.nnk.lv-le-ssl.conf:2)
alias www.evn.nnk.lv
port 443 namevhost nnk.lv (/etc/apache2/sites-enabled/nnk.lv-le-ssl.conf:2)
alias www.nnk.lv
*:80 is a NameVirtualHost
default server evn.nnk.lv (/etc/apache2/sites-enabled/evn.nnk.lv.conf:1)
port 80 namevhost evn.nnk.lv (/etc/apache2/sites-enabled/evn.nnk.lv.conf:1)
alias www.evn.nnk.lv
port 80 namevhost nnk.lv (/etc/apache2/sites-enabled/nnk.lv.conf:1)
alias www.nnk.lv
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33