Here is my script:
Set-PAServer LE_STAGE
#Set-PAServer LE_PROD
$keyVal = Read-Host 'TSIG Key' -AsSecureString
$params = @{
DDNSNameserver = 'ns.server.com'
DDNSKeyName = 'mydomain.com'
DDNSKeyType = 'HMAC-SHA512'
DDNSKeyValue = $keyVal
DDNSExePath = 'C:\Program Files\BIND9.11.26.x64\nsupdate.exe'
}
New-PACertificate mydomain.com -Plugin RFC2136 -PluginArgs $params -AcceptTOS -Contact 'maintenance@mydomain.com' -Verbose
Here is what I get:
PS C:\users\user\Documents\WindowsPowerShell\Scripts> .\acme.ps1
COMMENTAIRES : Using ACME Server https://acme-staging-v02.api.letsencrypt.org/directory
COMMENTAIRES : Using account [redacted]
COMMENTAIRES : Using existing order for mydomain.com with status pending
COMMENTAIRES : Updating plugin args for plugin(s) RFC2136
COMMENTAIRES : Publishing challenge for Domain mydomain.com with Token [redacted] using Plugin RFC2136 and DnsAlias 'acme.mydomain.com'.
COMMENTAIRES : Adding acme.mydomain.com with value [redacted]
Submit-ChallengeValidation : Unexpected output from nsupdate command. Use -Verbose for details.
Au caractère C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\4.0.0\Public\New-PACertificate.ps1:216 : 9
+ Submit-ChallengeValidation
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unexpected outp...se for details.:String) [Submit-ChallengeValidation], RuntimeException
+ FullyQualifiedErrorId : Unexpected output from nsupdate command. Use -Verbose for details.,Submit-ChallengeValidation
I tried nsupdate from both Bind 9.16.10 and Bind 9.11.26. I am sure about my settings because I use RFC2136 Validation on multiple Linux VMs using certbot for the same domain. Running Win2k19 server.
Here is my script:
Here is what I get:
I tried
nsupdatefrom both Bind 9.16.10 and Bind 9.11.26. I am sure about my settings because I use RFC2136 Validation on multiple Linux VMs usingcertbotfor the same domain. Running Win2k19 server.