Skip to content

Commit 8ad6828

Browse files
author
georgemillard
authored
Create letsencrypt.md
1 parent e712593 commit 8ad6828

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

letsencrypt.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
### Installing SSL certificates with letsencrypt and certbot
2+
3+
[Useful tutorial here](https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-certificates-for-multiple-apache-virtual-hosts-on-ubuntu-14-04)
4+
5+
#### Install certbot
6+
```
7+
sudo add-apt-repository ppa:certbot/certbot
8+
9+
sudo apt-get update
10+
11+
sudo apt-get install python-certbot-apache
12+
```
13+
14+
#### Install certificates
15+
Best to install all subdomains along with root domain
16+
17+
`sudo certbot --apache -d example.com -d www.example.com`
18+
19+
#### Delete a cerificate
20+
Note this will cause apache errors, as references to the cart are not removed. Best to a2dissite the site first.
21+
22+
`certbot delete`
23+
24+
#### Check renewal status
25+
26+
```
27+
sudo apt-get ssl-cert-check
28+
su root
29+
cd /etc/letsencrypt/live
30+
ssl-cert-check <my_domain>/cert.pem
31+
```
32+

0 commit comments

Comments
 (0)