Khắc phục lỗi cài ssl với let’s encrypt trên DirectAdmin

07/04/2020 609

Hướng dẫn khách phục lỗi khi cài đặt ssl free (let's enscrypt) trên DirectAdmin

Lỗi phát sinh khi cài đặt let's enscrypt

Cannot Execute Your Request

Details

Getting challenge for vieturl.co 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: Fri, 24 Nov 2017 08:57:57 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: 267
Replay-Nonce: 5HNGQqIQ2Gyg0y-CDeh-ndZkZqPPzvOc4x8WKbep-SM
Expires: Fri, 24 Nov 2017 08:57:57 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Fri, 24 Nov 2017 08:57:57 GMT
Connection: close

{
“type”: “urn:acme:error:malformed”,
“detail”: “Provided agreement URL [https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf] does not match current agreement URL [https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf]”,
“status”: 400
}.

Các bạn SSH vào Server và chạy lệnh sau để update lại let's enscrypt nhé

cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt

Sau khi update xong các bạn setup lại ssl cho domain nhé

Chúc các bạn thành công