Skip to content

Script fails with 2 part domain suffixes. #1

@eternelpanic

Description

@eternelpanic

If you use this script for say ".com.au" based domains, the domain parsing in lines 204-220 of Get-NewLetsEncryptCertificate.ps1 and similarly in Register-LetsEncryptCertificateRequest.ps1 fails.
For example: hostname.example.com.au is broken into:
Hostname: hostname.example
FQDN: hostname.example.com.au
DnsZoneName: com.au

This prevents any certificates from being generated.

A basic patch is included, however Im certain this isnt the best approach to fix the issue, just a quick fix that works for me.

DomainSuffixFix.zip

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions