[temporary FIX] Let's Encrypt Licence Error

Trickster

Verified User
Joined
May 28, 2014
Messages
14
For everyone Who gets the following Error:
Getting challenge for food.com from acme-server...
User let's encrypt key has been found, but not registered. Registering...
Account registration error. Response: HTTP/1.1 100 Continue
Expires: Tue, 02 Aug 2016 05:31:12 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache

HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: application/problem+json
Content-Length: 265
Boulder-Request-Id: qW_iEHuelm_qkJCQVghX_JNGcKKxoZjoKp_43CMuoqw
Replay-Nonce: sW-yXYD-rkmH05yoZp5oCJIoaXphdUiSr-AmiV3QuA8
Expires: Tue, 02 Aug 2016 05:31:12 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 02 Aug 2016 05:31:12 GMT
Connection: close

{
"type": "urn:acme:error:malformed",
"detail": "Provided agreement URL [https://letsencrypt.org/documents/LE...y-27-2015.pdf] does not match current agreement URL [https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf]",
"status": 400
}.

I have Found a temporary fix.

Because the licence of Letsenscript is renewed, you need to accept the new licence, this is normaly done by letsencrypt.sh, but this file contains the old licence.

The Fix:
Edit file as root/usr/local/directadmin/scripts/letsencrypt.sh

Code:
nano /usr/local/directadmin/scripts/letsencrypt.sh

Replace Line 31
Code:
LICENSE="https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"
With
Code:
LICENSE="https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf"

This will fix the Error for now, but Someone or Directadmin them self need to create a automatic update of the Let's encrypt license.
For the person who can create the automatic update of this url, the following command gives the current license url:
Code:
curl -I https://acme-v01.api.letsencrypt.org/terms 2>/dev/null | grep "Location:"

I hope This will help everybody.
 
Thanks for this, you can also use those two lines:
Code:
LETSENCRYPT_LICENSE=`curl -I https://acme-v01.api.letsencrypt.org/terms 2>/dev/null | grep \"Location:\" | cut -d\  -f2`
sed -i "s/LICENSE=.*/LICENSE=\"$LETSENCRYPT_LICENSE\"/" /usr/local/directadmin/scripts/letsencrypt.sh

I did add those to my updates scripts so i don't need to bother, probably DA Staff will do the same to auto-update the script.

Regards
 
Last edited:
Thanks for the fix, I was just about to open a post regarding this issue.
 
Back
Top