github rmbolger/Posh-ACME v4.36.0

2 hours ago
  • Updated dns-persist-01 support for draft 04
    • Breaking Change: dns-persist-01 domain normalization now follows draft-04 which requires IDN domains to be supplied in punycode form. Unicode names are rejected rather than converted.
    • Breaking Change: All -AccountHashPrefix parameters and related code have been removed as draft 04 no longer uses it and there were no production implementations of draft 02-03 that I'm aware of.
    • Breaking Change: Renamed Get-DnsPersistAccountUri to Get-DnsPersistAccountDigest
    • Breaking Change: The -HashedAccountUri parameter in the Advanced param set for Publish/Unpublish-DnsPersistChallenge has been renamed to -AccountDigest
    • New -LegacyWireFormat switch on Publish/Unpublish-DnsPersistChallenge which makes the TXT record value use the old accounturi field name instead of the new accountdigest field name to retain some compatibility with older drafts.
    • Get-PublishedPersistChallenge now has AccountDigest and LegacyWireFormat output fields instead of HashedAccountUri and you can still pipe the output to Publish/Unpublish-DnsPersistChallenge. The underlying cache file will have its schema updated automatically the first time it is accessed or you can force it by running the function manually.
    • IPv4 and IPv6 identifiers are now supported for dns-persist-01. Their persistent records use _ip-validation-persist under the corresponding reverse .arpa name and do not support the wildcard policy.
    • New shared PluginArgs parameter PersistAncestor lets a dns-persist-01 order validate subdomains using a manually created ancestor record. It accepts one or more domains and uses the nearest matching ancestor. The record must be created ahead of time with policy=wildcard. Requires -DnsVariant dns-persist-01, cannot be combined with PublishPersist, and does not apply to IP identifiers.
      • If no matching ancestor is found in the supplied values, a warning is thrown and no ancestorDomain value is sent to the CA.
      • Don't use this with Google's draft-01 implementation. The field is not recognized and Google walks the DNS tree for ancestor records instead.
    • Send-ChallengeAck has a new optional -AncestorDomain parameter when used with dns-persist-01. It sends the specified ancestor as the ancestorDomain challenge response field, allowing manual challenge acknowledgements to use an ancestor record.
    • Submit-ChallengeValidation now warns when a locally cached persistent record for an identifier and issuer has expired or will expire within an hour. If an ancestor domain is provided, that is the identifier that is checked. This check does not query DNS.
  • Updated ARI support for RFC 9773
    • Posh-ACME now respects Retry-After header if present with appropriate back off timing for errors
    • Additional validation on suggested window values (Thanks @zhechen-cs)
    • Added an ARI check immediately after cert issuance
  • Fixed pipeline bugs with Revoke-PACertificate and Remove-PAServer (#705) (Thanks @nimbice)
  • Simply.com plugin no longer requires SimplyAccount parameter. (#706) (Thanks @tomsommer)
  • Fixed Gandi plugin when using legacy key values due to unannounced API change (#707) (Thanks @Aldaviva)
  • Fixed a few places that were potentially leaking cleartext credentials in debug output (#713) (Thanks @nimbice)
  • Fixed a couple bugs in Set-PAServer that affected whether cert validation is disabled/enabled properly when switching servers with different settings. (#709) (Thanks @nimbice)
  • Set-PAOrder now ignores and warns when modifying a -CSRPath based order and using parameters that apply only to orders with a generated private key. Those parameters include Subject, FriendlyName, PfxPass, PfxPassSecure, UseModernPfxEncryption, UsePfxDerEncoding, Install, OCSPMustStaple, and AlwaysNewKey.
  • Set-PAOrder now has a -CSRPath parameter which stages a replacement CSR for subsequent renewals. It is effectively intended to allow for the external device holding the private key and generating the CSR to rotate that key and the new CSR must have the same names in the same order and the same key type and size as the previous CSR or it will be rejected. If those values have changed, use New-PAOrder or New-PACertificate instead.

Potentially Breaking Change

  • Generated CSRs no longer include the Basic Constraints or Subject Key Identifier (SKI) extensions.
    • This is a fix for AWS's ACME endpoint that rejects CSRs containing those extensions.
    • This change has been tested successfully against all known free public ACME CAs and the resulting certs still contain the removed extensions.
    • However, there are many commercial and private CAs I was unable to test against which is why this might be a breaking change for them. PLEASE test if you're not using one of the free public ACME CAs.
    • If for some reason your preferred CA rejects the new CSRs, you may always fall back to supplying your own CSR using the -CSRPath param in many of the functions.

Don't miss a new Posh-ACME release

NewReleases is sending notifications on new releases.