大网数据广告活动
服务器运维问答

Cannot Validate Certificate in AWS Certificate Manager

· 52CE 我爱测

I have a Hosted Zone in Route 53 registered with name subdomain.domain.com . I'm now attempting to create a certificate in AWS certificate manager to protect second-level subdomains. I created a wildcard certificate *.subdomain.d…

问题原文

原帖链接 · Sergei · CC BY-SA 4.0

I have a Hosted Zone in Route 53 registered with name subdomain.domain.com. I'm now attempting to create a certificate in AWS certificate manager to protect second-level subdomains. I created a wildcard certificate *.subdomain.domain.com and then went to my domain DNS configurations and added the following records:

Host Name Type Name Value
*.subdomain.domain.com CNAME _xxx.subdomain.domain.com _xxx.xxx.acm-validations.aws.
subdomain.domain.com NS subdomain.domain.com 4 nameservers from my hosted zone

The certificate has been pending validation for hours. I have verified that the CNAME value is correct. The certificate validation method is set to DNS. Don't really know what else I'm missing.

UPDATE

I updated certificate definition to add a SAN for *.domain.com and then went to my DNS manager to add a CNAME record that got generated by AWS. The *.domain.com SAN got immediately validated, however, the second-level subdomain SAN is still pending.

已采纳解答

原帖链接 · Sergei · CC BY-SA 4.0

To anyone having similar issue, what fixed my problem is adding a CNAME record to the Hosted Zone. This can be done by going to your pending certificate in ACM and clicking on "Create records in Route 53." This allowed the validation to complete successfully after about 10 minutes.

Moreover, I believe the reason it worked for the APEX domain (ie domain.com) and not the second-level subdomain certificate is because of the NS record I added in my DNS configurations.

If you're creating a certificate using Cloudformation you can automate this by providing DomainValidationOptions in your AWS::CertificateManager::Certificate resource and specifying the reference to your Hosted Zone. This will add the CNAME record automatically.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-02-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。