Switching from custom SSL to LetsEncrypt

1. What is the issue?
I have a self hosted ODK installation (on-prem) on Ubuntu 22.04.3 LTS. Previously I using custom SSL and it was working fine until the certificate expired. I now got new SSL certificate from Letsencypt.
I don't know how to load the new files. I have changed the .env file to reflect the changes but no luck on my side.

2. What steps can we take to reproduce this issue?

3. What have you tried to fix the issue?

  • Updated the .env file to reflect that I am using Letsencypt.
  • Placed the fullchain.pem and Privkey.Pem in /central/file/local/customssl
  • rebuilt by running docker compose build nginx && docker compose stop nginx && docker compose up -d nginx

4. Upload any forms or screenshots you can share publicly below.
nginx: [emerg] cannot load certificate "/etc/letsencyprt/live/XXXX/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencyprt/live/XXX/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)

Make sure SSL_TYPE is spelled correctly. It ends in crypt not cyprt.

SSL_TYPE=letsencrypt

Then deleting the nginx container and rebuilding.

docker compose stop;
docker compose rm nginx -v;
docker compose build;
docker compose up -d;

Thank you Yanokwa. It worked like MAGIC!!!!!!!!!!!!!!!!!!!!!!!!!!!