m3ng9i/ran

How to use this with letsencrypt and assign domain name as well

Opened this issue · 2 comments

Is it possible to embed letsencrypt certificate creation and also assign domain name like www.example.com?

Yeah, maybe in the future, but not now.

just updating, working on ubuntu 18.04 2020

generate your cert , and Combine both certificate and private key in one file.

certbot certonly --webroot -w /mnt/data -d example.com -d www.example.com

cat /etc/letsencrypt/live/example.com/cert.pem /etc/letsencrypt/live/example.com/privkey.pem > /etc/letsencrypt/live/example.com/web.pem

ran should load the certs, if you have issue, recheck your cert paths .

/usr/bin/ran -cert=/etc/letsencrypt/live/example.com/cert.pem -key=/etc/letsencrypt/live/example.com/web.pem -tls-policy=redirect -tls-port=443 -root=/mnt/data -port=80 -index=index.html -listdir=true -serve-all=true cors=true -gzip=true