question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aws-certificatemanager DnsValidatedCertificateHandler does not properly handle certs with SubjectAlternativeNames

See original GitHub issue

A DnsValidatedCertificate will never successfully validate when SubjectAlternativeNames are present. This seems to be due to the custom resource only adding the first DomainValidationOptions record to Route53. See line 110 here. This should add a new ResourceRecordSet for every DomainValidationOptions result.

Reproduction Steps

Create a DnsValidatedCertificate and add at least one record to subjectAlternativeNames.

Environment

  • CLI Version : 1.14.0
  • Framework Version: 1.14.0
  • OS : MacOS 10.14
  • Language : Typescript

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jamiepmullancommented, Jan 13, 2020

Any updates on this @SomayaB or @rix0rrr ?

1reaction
touzokucommented, Feb 29, 2020

Repro:

const hostedZone = route53.HostedZone.fromLookup(this, 'WebsiteHostedZone', {domainName: 'example.com'})
new acm.DnsValidatedCertificate(
      this,
      'WebsiteCertificate',
      {
        domainName: 'example.com',
        subjectAlternativeNames: ['www.example.com'],
        hostedZone
      }
    )

It will only validate example.com, while www.example.com will be left hanging in ACM until the validator cloudformation custom resource times out.

Submitted a PR fixing this issue: #6516

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot DNS validation problems - AWS Documentation
Consult the following guidance if you are having trouble validating a certificate with DNS. Tip. The first step in DNS troubleshooting is to...
Read more >
Using AWS Certificate Manager Private CA to Issue ... - YouTube
In this tech talk, you will learn how to deploy SSL/TLS across an organization, which requires both certificate and certificate authority ...
Read more >
Subject Alternative Names in SSL Certificates - Medium
I recently wrote an article on how to generate and upload a self-signed SSL Certificate to AWS Certificate Manager.
Read more >
Secure Your Infrastructure With Certificates Using AWS ...
AWS Certificate Manager is a service by Amazon that lets a user provision, manage, and deploy public and private SSL/TLS certificates that ......
Read more >
ssl - How do Common Names (CN) and Subject Alternative ...
You cant set both CNs, because CN can hold only one name. You can make with 2 simple CN certificate instead one CN+SAN...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found