Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rahulmr opened this issue Sep 13, 2017 · 2 comments
Open

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

rahulmr opened this issue Sep 13, 2017 · 2 comments

Comments

@rahulmr
Copy link

rahulmr commented Sep 13, 2017

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

@m3ng9i
Copy link
Owner

m3ng9i commented Sep 14, 2017

Yeah, maybe in the future, but not now.

@omgbox
Copy link

omgbox commented Apr 13, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants