import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.cdn.resources.prevalidate_ssl_le_certificate( 0,)
Copy
Ask AI
{ "errors": [ "An error occurred when connecting to the validation URL. Please ensure that DNS records are pointed to our services, and check whether the rules you created overlap the path \"/.well-known/acme-challenge/\". If you have just created a CDN resource, it may take up to 15 minutes to activate it. In this case, please wait until the CDN resource is activated and try to issue the certificate again." ]}
Let's Encrypt certificates
Pre-validate CDN resource before issuing Let's Encrypt certificate
Check whether a Let’s Encrypt certificate can be issued for the CDN resource.
POST
/
cdn
/
resources
/
{resource_id}
/
ssl
/
le
/
pre-validate
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.cdn.resources.prevalidate_ssl_le_certificate( 0,)
Copy
Ask AI
{ "errors": [ "An error occurred when connecting to the validation URL. Please ensure that DNS records are pointed to our services, and check whether the rules you created overlap the path \"/.well-known/acme-challenge/\". If you have just created a CDN resource, it may take up to 15 minutes to activate it. In this case, please wait until the CDN resource is activated and try to issue the certificate again." ]}