I installed the certificate with certbot and chose the option to divert all http requests to https
My domain is:
www.blackboxstaff.co.uk
I ran this command:
sudo certbot --apache
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Which names would you like to activate HTTPS for?
1: blackbox.dev
2: www.blackbox.dev
3: blackboxstaff.co.uk
4: www.blackboxstaff.co.uk
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel): 4
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.blackboxstaff.co.uk
Waiting for verification…
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/www.blackboxstaff.co.uk-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/www.blackboxstaff.co.uk-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/www.blackboxstaff.co.uk-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
Redirecting vhost in /etc/apache2/sites-enabled/www.blackboxstaff.co.uk.conf to ssl vhost in /etc/apache2/sites-available/www.blackboxstaff.co.uk-le-ssl.conf
Congratulations! You have successfully enabled https://www.blackboxstaff.co.uk
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=www.blackboxstaff.co.uk
IMPORTANT NOTES:
-
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/www.blackboxstaff.co.uk/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/www.blackboxstaff.co.uk/privkey.pem
Your cert will expire on 2019-04-12. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the “certonly” option. To non-interactively renew all of
your certificates, run “certbot 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):
Apache2
The operating system my web server runs on is (include version):
Ubuntu 16.04.3 LTS
My hosting provider, if applicable, is:
N/A
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