Certificate from Let's Encrypt
You can use Certificate Manager to create Let's Encrypt certificates. Request a certificate and pass the domain rights check. After that, Certificate Manager will manage your certificate by working with Let's Encrypt on your behalf.
Let's Encrypt provides Domain Validation TLS certificates with a 90-day validity period. If you need Organization Validation or Extended Validation certificates, use a third-party certificate authority to get the certificate, and then upload it to Certificate Manager. For more information, see User certificate.
You can use a certificate created with Certificate Manager in the specified Yandex Cloud services only.
Get a certificate
-
Specify the list of domains you need to issue a certificate for.
-
Select the type of domain rights check:
HTTP
orDNS
.Certificate status after the request is created:
Validating
. -
To get a certificate, pass the domain rights check for the domains you specified in the previous step.
Depending on the selected type of check, put the file on the web server or add a
TXT
orCNAME
resource record with the appropriate value in the DNS service. To learn more about the types of checks and ways to pass them, see Checking rights for a domain.For a successful DNS domain rights check based on a
CNAME
record, make sure the_acme-challenge
subdomain of the domain name you are checking has no other resource records exceptCNAME
. For example, for the_acme-challenge.example.com.
domain name, there should only be a CNAME record and no TXT record. -
As soon as the domain rights check is passed, the certificate will be issued and get the
Issued
status. You can use the certificate in services that are integrated with Certificate Manager.
Warning
If you fail to pass the domain rights check within a week, the certificate will not be issued and its status will change to Invalid
.
Certificate issue statuses
You can view the stages of issuing a certificate, their detailed description, and the result of each one in the management console. This information can be found in each certificate's logs.
The stages of issuing a Let's Encrypt certificate are as follows:
-
Requesting a certificate.
At this stage, an asymmetric key pair is generated, a Let's Encrypt account is created, and a request for a certificate is submitted.
-
Challenge generation.
At this stage, the domain rights check challenges are generated based on the ACME
standard. -
Passing the domain rights check challenges.
At this stage, your control of the domains you request the certificate for is verified. To get through this stage, complete the following actions for the type of check you selected:
HTTP
: Put a file on the web server.DNS
: Add a record in the DNS service.
The system will check at 30 minute intervals whether the challenge conditions are met. Until then, the stage will remain in the
Error
status. If you fail to pass the challenges within one week, your certificate request will be declined. -
Completing the issue of the certificate. At this stage, the following actions are automatically performed:
- Creating a Certificate Signing Request (CSR).
- Getting the challenges checked on the Let's Encrypt side.
- Requesting Let's Encrypt to sign the certificate.
- Getting Let's Encrypt's response on the issue of the certificate.
- Completing the issue and saving the certificate to Certificate Manager.
You can proceed to each next stage after the previous one ends with Success
.
Renewing a certificate
Warning
To renew a certificate, follow the steps below. Keep track of the lifecycle of your certificates to renew them on time.
-
Certificate Manager initiates the certificate renewal procedure 30 days before it expires.
After the renewal procedure starts, the certificate gets the
Renewing
status. -
Pass the domain rights check.
Depending on the type of check you selected, update the file on the web server or update the
TXT
record in the DNS service to the new value. For more information, see Check rights for domain.Note
If the certificate is used in a static website in Object Storage and does not contain masked domains
, the rights check can be performed automatically.
For more information, see Checking rights automatically. -
As soon as the domain rights check is passed, the certificate will be renewed and get the
Issued
status. All the resources that use the certificate will get its new version.
The certificate will not be renewed if the domain rights check ends with an error, even for a single domain. In which case the certificate's status will change to Renewal_failed
, and it will remain valid until it's expiration date.
Some time after the failed renewal, a new attempt will be made to update the certificate.
To avoid issues with access to resources that depend on the certificate with the Renewal_failed
status:
- Before the certificate expires, get and add a new Let's Encrypt certificate.
- Pass the domain rights check.
- Use the new certificate in your resources.