Error: Could not issue a Let’s Encrypt SSL/TLS certificate for a domain in Plesk

Khi bạn cài SSL letencrypt có thông báo lỗi sau.

Error: Could not issue a Let’s Encrypt SSL/TLS certificate for yourdomain.com.

The authorization token is not available at http://yourdomain.com/.well-known/acme-challenge/Nosd4hhCuEl1uBTPZZ9XWERdBcip-kaHHGY3U1MaqM0.
To resolve the issue, make sure that the token file can be downloaded via the above URL.
See the related Knowledge Base article for details.
Details
Invalid response from https://acme-v02.api.letsencrypt.org/acme/authz-v3/3366144285.
Details:
Type: urn:ietf:params:acme:error:unauthorized
Status: 403
Detail: Invalid response from http://yourdomain.com/.well-known/acme-challenge/Nosd4hhCuEl1uBTPZZ9XWERdBcip-kaHHGY3U1MaqM0:

Nguyên nhân dẫn tới lỗi trên là do config chặn không cho xem nội dung của đường dẫn xác minh: //yourdomain.com/.well-known/acme-challenge/Nosd4hhCuEl1uBTPZZ9XWERdBcip-kaHHGY3U1MaqM0

Để khắc phục bạn sửa file Web.Config trong thư mục .well-known\acme-challenge, nếu file này đã có nội dung bạn xóa đi, nếu chưa có file bạn tạo mới file này sau đó thêm nội dung sau vào:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension="." mimeType="text/plain" />
        </staticContent>
        <handlers>
            <clear />
            <add name="StaticFile" path="*" verb="GET" modules="StaticFileModule" resourceType="Either" />
        </handlers>
    </system.webServer>
</configuration>

Sau khi save lại file bạn có thể tạo file text.txt trong thư mục này xem đã truy cập được chưa, hoặc truy cập theo đường dẫn thông báo lỗi yourdomain.com/.well-known/acme-challenge/Nosd4hhCuEl1uBTPZZ9XWERdBcip-kaHHGY3U1MaqM0 nếu đã truy cập được bạn cài lại SSL Let’s Encrypt cho plesk

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *