-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathssl-dns-route53-manual.sh
More file actions
36 lines (29 loc) · 1.32 KB
/
ssl-dns-route53-manual.sh
File metadata and controls
36 lines (29 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# For Copy/Paste purpose
############################################
############## Installation ################
############################################
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update
sudo apt-get install certbot -y
sudo apt install python-pip -y
sudo pip install dns-lexicon
sudo pip install dns-lexicon[route53]
############################################
############## Configuration ###############
############################################
sudo cp /tmp/wp-serverstack/certbot-route53/* /etc/letsencrypt/
#replace akey with your AWS access key
sudo sed -i "s/route53_access_key/akey/g" /etc/letsencrypt/lexicon-provider_route53.sh
#replace skey with your AWS access secret
sudo sed -i "s/route53_access_secret/skey/g" /etc/letsencrypt/lexicon-provider_route53.sh
sudo chown root:root /etc/letsencrypt/lexicon-*.sh
sudo chmod 0700 /etc/letsencrypt/lexicon-*.sh
#replace website.com with your domain name
sudo certbot certonly --manual \
--manual-public-ip-logging-ok \
--manual-auth-hook "/etc/letsencrypt/lexicon-provider_route53.sh create" \
--manual-cleanup-hook "/etc/letsencrypt/lexicon-provider_route53.sh delete" \
--preferred-challenges dns \
-d website.com -d www.website.com -d tools.website.com -d origin.website.com