Hi @dnutan,
I tried different scenarios.
My conclusions with acme.sh-3.0:
".pem"
- The first new certificate is set as default.
- Server-Manager does not see the certificate, but the browser uses it.
- After a
systemctl restart nginx
, Discourse uses the Let’s Encrypt certificate.
".crt"
- After defining the new certificate as default, Server-Manager sees the certificate and the browser uses it.
- After a
systemctl restart nginx
, Discourse does not see the new Let’s Encrypt certificate and still uses the first LE certificate, because it only sees keys with the “.pem” extension.
Discourse:
- For me, the best solution would be to find out where Discourse maps the
/root/.acme.sh
directory and from where it points the different keys in the subdirectory. - It has to do like Jitsi Meet which mounts
/root/.acme.sh
in the Prosody/YAML container, then there is a parameter that point to each of the different keys in the subdirectory mounted in the container. - Maybe those parameters are in some nginx configuration file or even somewhere else…
Michel-André