Closed echoburn closed 6 years ago
Hi there,
Cert generation using the Cloudflare handler works fine apart from the cleanup step at the end.
The following command results in an 'object reference not set to an instance of an object' exception:
Complete-ACMEChallenge $alias -CleanUp -ChallengeType dns-01 -Handler CloudFlare -HandlerParameters @{DomainName=$cloudflareDomain;EmailAddress=$cloudflareEmail;AuthKey=$cloudflareKey}
I can repro this with the following full example:
$cloudflareDomain = "cf.domain.com" $cloudflareEmail = "cf@email.com" $cloudflareKey = "cfkkkkey" $alias = "alias" New-ACMEIdentifier -Dns xxx.domain.com -Alias $alias Complete-ACMEChallenge $alias -ChallengeType dns-01 -Handler CloudFlare -HandlerParameters @{DomainName=$cloudflareDomain;EmailAddress=$cloudflareEmail;AuthKey=$cloudflareKey} Submit-ACMEChallenge $alias -ChallengeType dns-01 Update-ACMEIdentifier New-ACMECertificate -Generate -IdentifierRef $alias -Alias $alias Submit-ACMECertificate -CertificateRef $alias Complete-ACMEChallenge $alias -CleanUp -ChallengeType dns-01 -Handler CloudFlare -HandlerParameters @{DomainName=$cloudflareDomain;EmailAddress=$cloudflareEmail;AuthKey=$cloudflareKey}
Nevermind - I see there is already an issue for this
Hi there,
Cert generation using the Cloudflare handler works fine apart from the cleanup step at the end.
The following command results in an 'object reference not set to an instance of an object' exception:
Complete-ACMEChallenge $alias -CleanUp -ChallengeType dns-01 -Handler CloudFlare -HandlerParameters @{DomainName=$cloudflareDomain;EmailAddress=$cloudflareEmail;AuthKey=$cloudflareKey}
I can repro this with the following full example: