Skip to content

Commit

Permalink
strip trailing '.' from record name passed to DNS plugins to simplify…
Browse files Browse the repository at this point in the history
… parsing logic (#584)
  • Loading branch information
rmbolger committed Nov 16, 2024
1 parent b516a54 commit d599243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Posh-ACME/Public/Publish-Challenge.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function Publish-Challenge {

# call the function with the required parameters and splatting the rest
Write-Debug "Calling $Plugin plugin to add $recordName TXT with value $txtValue"
Add-DnsTxt -RecordName $recordName -TxtValue $txtValue @PluginArgs
Add-DnsTxt -RecordName $recordName.TrimEnd('.') -TxtValue $txtValue @PluginArgs

} else { # http-01 is the only other challenge type we support at the moment

Expand Down
2 changes: 1 addition & 1 deletion Posh-ACME/Public/Unpublish-Challenge.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function Unpublish-Challenge {

# call the function with the required parameters and splatting the rest
Write-Debug "Calling $Plugin plugin to remove $recordName TXT with value $txtValue"
Remove-DnsTxt -RecordName $recordName -TxtValue $txtValue @PluginArgs
Remove-DnsTxt -RecordName $recordName.TrimEnd('.') -TxtValue $txtValue @PluginArgs

} else { # http-01 is the only other challenge type we support at the moment

Expand Down

0 comments on commit d599243

Please sign in to comment.