Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Better handle hostnames vs domains #10

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

jordiclariana
Copy link
Contributor

We need to be able to differ between hostnames and domains when we look for a zone.

This way, either we pass a hostname or a zone we will find the right Route53 zone ID. For example:

We want to create a certificate for a domain called example.com: the script will find it right away and return the zone ID.
But, if we want to create a certificate for a hostname foo.example.com which is in the zone example.com, the script will first try to find foo.example.com in Route53 zones, and if not found, it will assume it is a hostname, strip out the foo. and try to find example.com zone. In that zone it will create the TXT field for the Letsencrypt DNs challenge.

Should fix #9

@jed
Copy link
Owner

jed commented Jan 23, 2018

thanks, @jordiclariana!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No longer able to request or renew certificates since the latest merge
2 participants