Get started with Domains & certificates
Add a domain, prove it with one CNAME record, watch its certificate being issued, and delete it again, in about ten minutes.
Replace apps.example.com with a name under a domain you own and can add DNS records to.
Prerequisites
- Permission for
domains:CreateDomain,domains:VerifyDomain,domains:GetDomainanddomains:DeleteDomain; in the console alsodomains:ListDomains. - For the CLI steps, the dcloud CLI, signed in. For the API steps, an access key.
Step 1: Add the domain
- Open Domains, then choose Add domain.
- For Domain, enter apps.example.com.
- Select Also every name one level under it.
- Choose Add.
The domain's page opens and shows the record to create, under Proof.
dcloud domains domains create --name apps.example.com --wildcardPOST /domains/api/domains
{ "name": "apps.example.com", "wildcard": true }The answer's proofRecord names the record, for example
_acme-challenge.apps.example.com CNAME _acme-challenge.3f9c….domains.apps.….
Step 2: Create the CNAME
At the provider that answers DNS for your domain, create the CNAME record exactly as
proofRecord shows it. If the domain is in one of your hosted zones and the zone's delegation is
verified, there is nothing to create: the domain is verified as soon as you add it.
Step 3: Verify
The platform looks for the record every five minutes. To look now:
- On the domain's page, choose Verify now.
dcloud domains domains verify apps.example.comPOST /domains/api/domains/apps.example.com/verifyOnce the record is found, Proof shows Verified and Certificate shows Issuing; a few minutes later it shows Active with the expiry date.
Clean up
- On the domain's page, choose the ⋯ menu, then Delete domain.
- Enter the domain's name and choose Delete.
dcloud domains domains delete apps.example.comDELETE /domains/api/domains/apps.example.comThen remove the CNAME record at your DNS provider.