tAdd details on generating LE certificate - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit c6560b5bca3173a1c5155921f7812cbab7a54ea4
(DIR) parent ed91cf23ad9b97045e4e7d7c618cb6b519388288
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 5 Nov 2018 10:52:55 +0100
Add details on generating LE certificate
Diffstat:
M Makefile | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -56,4 +56,8 @@ generate-letsencrypt-certificate:
sudo certbot certonly -a manual \
-d $(DOMAIN) -d www.$(DOMAIN) #\
#-d $(DOMAIN:.com=.dk) -d www.$(DOMAIN:.com=.dk)
+ mkdir -p keys/
+ sudo cp /etc/letsencrypt/live/andersdamsgaard.com/{cert,chain,fullchain,privkey}.pem ~/.password-store/website/
+ sudo chown -R ad ~/.password-store/website
+ @echo "Certificate is fullchain.pem, key (PEM) is privkey.pem"