> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# An SSL certificate isn't working: how to solve the issue

## Can't attach a personal certificate to a resource

**Check whether there is an empty line at the end of a certificate chain**. The line is often forgotten, the error occurs because of this. This is how the chain with an empty line at the end looks:

<Frame>
  <img src="https://mintcdn.com/gcore/evtADw-dx9HWoqdh/images/docs/cdn/troubleshooting/an-ssl-certificate-isn-t-working-how-to-solve-to-issue/image-3.png?fit=max&auto=format&n=evtADw-dx9HWoqdh&q=85&s=db5363237fc5e00fcc8c1c855f0dc3cb" alt="Can't attach a personal certificate to a resource" width="740" height="215" data-path="images/docs/cdn/troubleshooting/an-ssl-certificate-isn-t-working-how-to-solve-to-issue/image-3.png" />
</Frame>

Full instructions for attaching a certificate: [Add an SSL certificate to deliver content over HTTPS](/cdn/ssl-certificates/add-an-ssl-certificate-to-deliver-content-over-https#add-an-ssl-certificate-to-deliver-content-over-https).

## Can't get Let's Encrypt certificate

**Check whether the [rules](/cdn/cdn-resource-options/rules-for-particular-files/create-a-rule-manually-or-from-a-template-to-configure-settings-for-particular-files) you created overlap the path "/.well-known/acme-challenge/".** This is the path for issuing a certificate, in many cases, such a rule (for example, with the path "/.\*") does not allow issuing the certificate. Disable the rule, get the certificate, and enable the rule again.

You can check whether the rule blocks the certificate issuance path using [this service](https://regex101.com/r/Hy9bKy/1).

**Check whether you have added a CNAME record with our domain**. Your domain's DNS records must have a CNAME record with your personal zone as the value. The certificate cannot be issued without it. You will find the value for the record in the second step of the setup guide for the resource:

<Frame>
  <img src="https://mintcdn.com/gcore/evtADw-dx9HWoqdh/images/docs/cdn/troubleshooting/an-ssl-certificate-isn-t-working-how-to-solve-to-issue/image-4.png?fit=max&auto=format&n=evtADw-dx9HWoqdh&q=85&s=1461762a6692ca5e4d4444bc0034e154" alt="Can't get Let's Encrypt certificate" width="1376" height="310" data-path="images/docs/cdn/troubleshooting/an-ssl-certificate-isn-t-working-how-to-solve-to-issue/image-4.png" />
</Frame>

If these tips don't help, write to technical support via the chat in the corner of the screen — we will help you.
