Amazon Route 53 DNS-01 setup
Use Amazon Route 53 to publish challenge TXT values in a public hosted zone. Connect the verified domain in SSLNexus using an IAM credential with access to the challenge names. Use a simple TXT record set in the standard AWS commercial partition.
Find the public hosted zone ID
- Open the AWS Console → Route 53 → Hosted zones. Select the zone for the verified parent domain. Check that its type is Public. If several zones have the same name, compare its assigned nameservers with the public delegation.
- Copy the Hosted zone ID from the hosted zones list or zone details. Use the
Z…identifier for the IAM policy and the SSLNexus connection. An AWS account number or a load balancer’s canonical hosted zone ID identifies a different resource.
Give SSLNexus access to the challenge names
- Ask your AWS administrator for credentials dedicated to this zone. For an IAM user, open IAM → Policies → Create policy → JSON. Adapt the example below, create the policy, then attach it under IAM → Users → the dedicated user → Permissions → Add permissions. Use the matching permissions on the role if your organisation issues temporary credentials.
- For a user access key, go to IAM → Users → the dedicated user → Security credentials → Access keys → Create access key. Complete the prompts. Save the Access key ID and Secret access key when AWS shows them. For temporary credentials, obtain all three values from the same AWS session, including the Session token and its expiry time.
Replace ZHOSTEDZONEID with the copied zone ID in both places. Replace _acme-challenge.app.example.org with the exact lower-case TXT owner for your certificate name. Add each additional challenge owner to the array, without trailing dots. For a delegated challenge use the approved destination owner. The read permissions inspect the zone and existing values. The change permissions allow adding and removing TXT values while preserving neighbouring values.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["route53:GetHostedZone", "route53:ListResourceRecordSets"],
"Resource": "arn:aws:route53:::hostedzone/ZHOSTEDZONEID"
},
{
"Effect": "Allow",
"Action": "route53:ChangeResourceRecordSets",
"Resource": "arn:aws:route53:::hostedzone/ZHOSTEDZONEID",
"Condition": {
"ForAllValues:StringEquals": {
"route53:ChangeResourceRecordSetsNormalizedRecordNames": ["_acme-challenge.app.example.org"],
"route53:ChangeResourceRecordSetsRecordTypes": ["TXT"],
"route53:ChangeResourceRecordSetsActions": ["CREATE", "DELETE"]
}
}
},
{
"Effect": "Allow",
"Action": "route53:GetChange",
"Resource": "arn:aws:route53:::change/*"
}
]
}
Manage an IAM user’s access keys · Restrict changes by DNS name and record type.
Connect the hosted zone in SSLNexus
- Open Organisation → Managed parent domains. If you manage several organisations, select the one that owns the domain.
- Beside the verified domain, choose Configure DNS-01 → Amazon Route 53. Enter the Public hosted zone ID, Access key ID and Secret access key. For temporary credentials, also enter the Session token.
- Choose Check connection, then Save connection. SSLNexus checks the public zone and its nameservers and uses the saved credential to publish the challenge.
Issue and renew a certificate
- Open Deployment targets → Configured targets → Edit → Certificate authority on the deployment target. Select Let’s Encrypt, enter the account email, set ACME directory → Production and choose Save target.
- Open Certificates → Certificate workflows → Create automation. Choose the deployment target and a hostname covered by the IAM policy. Select DNS-01, review each name and zone, then choose Create automation.
- Open the certificate’s job Details. Check the CA result, origin fingerprint and next renewal. SSLNexus removes its challenge value after validation and preserves other values and their TTL.
Expired credentials or an unconfirmed DNS change
Before the temporary session expires, go to Organisation → Managed parent domains → Manage DNS-01 → Replace credentials and enter a complete new set for the same zone. SSLNexus uses the credentials saved on that connection for renewals.
If a change is awaiting confirmation, open Manage DNS-01 for the domain and note the TXT owner, operation and exact change comment. In AWS audit history, locate the corresponding ChangeResourceRecordSets event and match the hosted zone, owner and comment. Copy its Route 53 change ID into the form and choose Confirm publication change or Confirm cleanup change. This checks the existing change so the original job can resume. If you cannot establish a match, leave the change pending and keep the other TXT values intact.
To disconnect Route 53, finish any pending cleanup, then open Organisation → Managed parent domains → Manage DNS-01 → Disconnect for the domain.