I recently installed Kobo on my own server and everything has been working well. However, my installed ssl certificates have just expired. I have generated a new certificate using " certbot certonly --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns -d ‘*.example.com’ -d example.com"
This succeeded and my certificates are now under /etc/letsencrypt/live/[example.com]. I am still unable to access the site using https.
I would like to know where I should place this certificates as the /kobo-docker/secrets folder seems to have been deprecated
Certificates should be renewed automatically, if they don’t it’s an issue.
Have you restarted the container?
My certificate expired today, and it hasn’t auto renewed. I tried restarting all the containers but doesn’t work. What should I do at this stage?
@stephanealoo can you help?
Can you look at the cerbot container logs?
I could find these 2 files and both seemed to be empty?
After a lot of trouble, I did it. I reinstalled the certificate manually. Here are the exact steps I followed, for the benefit of anyone else who finds themselves in a similar situation:
- Obtain the SSL certificate from LetsEncrypt and store it in the local host.
sudo docker run -it --rm --name certbot -v “/etc/letsencrypt:/etc/letsencrypt” -v “/var/lib/letsencrypt:/var/lib/letsencrypt” certbot/certbot certonly --manual -d yourdomain -d *.yourdomain
- Copy generated certificate and key to current folder (optional)
sudo cp /etc/letsencrypt/live/yourdomain/fullchain.pem .
sudo cp /etc/letsencrypt/live/yourdomain/privkey.pem .
- Copy the certificate and key into the certbot container (your container name may be different):
sudo docker cp fullchain.pem nginxcertbot_nginx_1:/fullchain.pem
sudo docker cp privkey.pem nginxcertbot_nginx_1:/privkey.pem
- SH into the container and place both the files in the correct folders:
sudo docker exec -it nginxcertbot_nginx_1 sh
cp fullchain.pem /etc/letsencrypt/live/yourdomain
cp privkey.pem /etc/letsencrypt/live/yourdomain
Make sure the configuration file at
/etc/nginx/conf.d/app.conf points to the correct folders.
Exit and restart the certbot container!
@ks_1, thank you for sharing these detailed steps . It should help the community having similar issues.
Letsencrypt SSL certificate was expired of my kobotoolx domain.
I just follow the the below steps and issue resolved.
SSL will be renew and no data loss.
Hope this will be helpfull.