# Domain for which to generate the certificate LETSENCRYPT_DOMAIN=<my.hostname.org>
# E-Mail for receiving important account notifications (mandatory) LETSENCRYPT_EMAIL=<me@hostname.org>
# Use the staging server (for avoiding rate limits while testing) LETSENCRYPT_USE_STAGING=1
Now the web server is inaccessible (notes client still connect to Sametime) and the log reports periodically the sequence
nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] Using ACME_DIRECTORY: https://acme-staging-v02.api.letsencrypt.org/directory nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] Using CA: https://acme-staging-v02.api.letsencrypt.org/directory nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] Run pre hook:'if [[ -d /run/service/nginx ]]; then s6-svc -d /run/service/nginx; fi' nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] Standalone mode. nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] Only RSA or EC key is supported. keyfile=/config/acme.sh/ca/acme-staging-v02.api.letsencrypt.org/account.key nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] Please add '--debug' or '--log' to check more details. nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh nginx_1 | [Tue Oct 15 12:41:35 CEST 2024] Run post hook:'if [[ -d /run/service/nginx ]]; then s6-svc -u /run/service/nginx; fi' nginx_1 | Failed to obtain a certificate from the Let's Encrypt CA.
It should be just a one time thing. BTW: You might have to run it via sudo. The sed script will only change "PRIVATE" to "RSA PRIVATE" and will leave "RSA PRIVATE" alone.
the file account.key is now correct but the log return a different message:
nginx_1 | [Tue Oct 15 14:51:22 CEST 2024] Installing to /config/acme.sh nginx_1 | [Tue Oct 15 14:51:22 CEST 2024] Installed to /config/acme.sh/acme.sh nginx_1 | [Tue Oct 15 14:51:22 CEST 2024] No profile is found, you will need to go into /config/acme.sh to use acme.sh nginx_1 | [Tue Oct 15 14:51:22 CEST 2024] Installing cron job nginx_1 | 47 0 * * * "/config/acme.sh"/acme.sh --cron --home "/config/acme.sh" > /dev/null nginx_1 | [Tue Oct 15 14:51:22 CEST 2024] Good, bash is found, so change the shebang to use bash as preferred. nginx_1 | [Tue Oct 15 14:51:22 CEST 2024] OK nginx_1 | /run/s6-rc:s6-rc-init:Bjbdgl/servicedirs/s6rc-oneshot-runner nginx_1 | [Tue Oct 15 14:51:22 CEST 2024] Using ACME_DIRECTORY: https://acme-staging-v02.api.letsencrypt.org/directory nginx_1 | [Tue Oct 15 14:51:23 CEST 2024] Using CA: https://acme-staging-v02.api.letsencrypt.org/directory nginx_1 | [Tue Oct 15 14:51:23 CEST 2024] Run pre hook:'if [[ -d /run/service/nginx ]]; then s6-svc -d /run/service/nginx; fi' nginx_1 | [Tue Oct 15 14:51:23 CEST 2024] Standalone mode. nginx_1 | [Tue Oct 15 14:51:23 CEST 2024] Single domain='<my.host.org>' nginx_1 | [Tue Oct 15 14:51:23 CEST 2024] Getting domain auth token for each domain nginx_1 | [Tue Oct 15 14:51:25 CEST 2024] Getting webroot for domain='<my.host.org>' nginx_1 | [Tue Oct 15 14:51:25 CEST 2024] Verifying: <my.host.org> nginx_1 | [Tue Oct 15 14:51:25 CEST 2024] Standalone mode server community_1 | stconvomap 2024-10-15 12:51:25.944 INFO 0 --- 41 : MongoMemberManager - Membership cleanup : Number of records deleted: 0 nginx_1 | [Tue Oct 15 14:51:29 CEST 2024] <my.host.org>:Verify error:<my.ip.add.ress>: Fetching http://<my.host.org>/.well-known/acme-challenge/bPXrxkXk8mLxr87S-mSKofGUx-GknbiLjrQziY6hoQ0: Connection refused nginx_1 | [Tue Oct 15 14:51:29 CEST 2024] Please add '--debug' or '--log' to check more details. nginx_1 | [Tue Oct 15 14:51:29 CEST 2024] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh nginx_1 | [Tue Oct 15 14:51:29 CEST 2024] Run post hook:'if [[ -d /run/service/nginx ]]; then s6-svc -u /run/service/nginx; fi' nginx_1 | Failed to obtain a certificate from the Let's Encrypt CA. nginx_1 | Exiting.