AcmeSH unable to find Nginx config #1

Closed
opened 2021-08-20 15:04:41 +02:00 by bprieshof · 1 comment
bprieshof commented 2021-08-20 15:04:41 +02:00 (Migrated from 192.168.2.138:3000)

Issue is upstream
https://github.com/acmesh-official/acme.sh/issues/1914
https://github.com/acmesh-official/acme.sh/issues/1743
https://github.com/acmesh-official/acme.sh/issues/1914

it seems to be fixed in the development branch,
but the fix is not yet in the main release

fixes:

Run development release

acmesh --upgrade -b dev

Add Config path after in activateSSL-.sh

Before:

if [ $domainwww = 1 ]; then
    /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" --ocsp --keylength 'ec-384' -d "$domain" -d "www.$domain"
    certsatus=$?
elif [ $domainwww = 0 ]; then
    /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" --ocsp --keylength 'ec-384' -d "$domain"
    certsatus=$?
fi

After:

if [ $domainwww = 1 ]; then
    /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" "/etc/nginx/sites-enabled/$sitename" --ocsp --keylength 'ec-384' -d "$domain" -d "www.$domain"
    certsatus=$?
elif [ $domainwww = 0 ]; then
    /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" "/etc/nginx/sites-enabled/$sitename"   --ocsp --keylength 'ec-384' -d "$domain"
    certsatus=$?
fi
Issue is upstream https://github.com/acmesh-official/acme.sh/issues/1914 https://github.com/acmesh-official/acme.sh/issues/1743 https://github.com/acmesh-official/acme.sh/issues/1914 it seems to be fixed in the development branch, but the fix is not yet in the main release fixes: Run development release ``` acmesh --upgrade -b dev ``` Add Config path after in activateSSL-<Domain>.sh Before: ``` if [ $domainwww = 1 ]; then /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" --ocsp --keylength 'ec-384' -d "$domain" -d "www.$domain" certsatus=$? elif [ $domainwww = 0 ]; then /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" --ocsp --keylength 'ec-384' -d "$domain" certsatus=$? fi ``` After: ``` if [ $domainwww = 1 ]; then /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" "/etc/nginx/sites-enabled/$sitename" --ocsp --keylength 'ec-384' -d "$domain" -d "www.$domain" certsatus=$? elif [ $domainwww = 0 ]; then /opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$webserv" "/etc/nginx/sites-enabled/$sitename" --ocsp --keylength 'ec-384' -d "$domain" certsatus=$? fi ```
bprieshof commented 2021-09-08 10:59:18 +02:00 (Migrated from 192.168.2.138:3000)

Fixed in upstream Main/Master branch

Fixed in upstream Main/`Master` branch
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Work_Archive/VPS-scripts_AcmeSH#1