Anyone who has gone through the trouble of setting up a secure website knows what a hassle getting and maintaining a certificate can be. Let’s Encrypt automates away the pain and lets site operators turn on and manage HTTPS with simple commands.
No validation emails, no complicated configuration editing, no expired certificates breaking your website. And of course, because Let’s Encrypt provides certificates for free, no need to arrange payment.
So, here are the steps:
- sudo-su-d into root account and enabled the ssl module:
- I installed the letsencrypt client:
- Shut down Apache, then requested a new certificate and started Apache up again.Now we have a lovely certificate!
- Now went into the config file of virtual host and changed things around a bit. I am sure that it is frowned upon to put two VirtualHost directives with two different ports into one config file, One more apache restartand that was it.
- As of version 0.4.0, the letsencrypt python client supports a high-level renew subcommand that attempts to renew all of your certs using the same settings that you originally used to obtain them. You can test it out by running:
letsencrypt renew --dry-run
which will obtain test certs, and shouldn’t leave any persistent changes on your system. If you like the results, you can run:letsencrypt renew
- The following command can be used to revoke a particular certificate.