Skip to content

Migration of certs already created with original client. #809

Answered by buchdag
kevin-lot asked this question in Q&A
Discussion options

You must be logged in to vote

Let say you have a certificate for www.example.tld obtained with certbot on the same machine where you are running docker and nginx-proxy + the LE companion, and your LE companion container is named your-le-container.

First, create the /etc/nginx/certs/www.example.tld folder inside your docker volume for certificates:

docker exec your-le-container mkdir -p /etc/nginx/certs/www.example.tld

Then copy the existing certificate, chain, full chain and private key inside this folder with the correct names (only the private key has a different name between certbot and simp_le):

sudo docker cp -L /etc/letsencrypt/live/www.example.tld/cert.pem your-le-container:/etc/nginx/certs/www.example.tld/
sud…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by buchdag
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #455 on May 16, 2021 17:40.