Posh-ACME

4.36.0

ACME protocol client for obtaining certificates using Let's Encrypt (or other ACME compliant CA)

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Posh-ACME

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Posh-ACME

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2018 Ryan Bolger. All rights reserved.

Package Details

Author(s)

  • Ryan Bolger

Tags

LetsEncrypt ssl tls certificates acme Linux Mac

Functions

Complete-PAOrder Export-PAAccountKey Get-DnsPersistAccountDigest Get-DnsAcctLabel Get-KeyAuthorization Get-PAAccount Get-PAAuthorization Get-PACertificate Get-PAOrder Get-PAPlugin Get-PAPluginArgs Get-PAProfile Get-PAServer Get-PublishedPersistChallenge Install-PACertificate Invoke-HttpChallengeListener New-PAAccount New-PACertificate New-PAOrder New-PAAuthorization Publish-Challenge Publish-DnsPersistChallenge Remove-PAAccount Remove-PAOrder Remove-PAServer Revoke-PAAuthorization Revoke-PACertificate Save-Challenge Send-ChallengeAck Set-PAAccount Set-PAOrder Set-PAServer Submit-ChallengeValidation Submit-OrderFinalize Submit-Renewal Unpublish-Challenge Unpublish-DnsPersistChallenge

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

## 4.36.0 (2026-12-03)

* 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.

FileList

Version History

Version Downloads Last updated
4.36.0 (current version) 1,862 12/4/2026
4.35.0 64,841 10/12/2026
4.34.0 60,425 8/23/2026
4.33.1 71,081 6/16/2026
4.33.0 6,588 6/10/2026
4.32.0 89,345 4/1/2026
4.31.1 46,437 2/7/2026
4.31.0 14,512 1/21/2026
4.30.1 53,299 11/18/2025
4.30.0 4,226 11/14/2025
4.29.3 301,432 7/24/2025
4.29.2 24,982 7/15/2025
4.29.1 50,045 6/26/2025
4.29.0 2,762 6/26/2025
4.28.0 366,874 2/9/2025
4.27.0 86,604 1/8/2025
4.26.0 187,142 11/2/2024
4.25.1 164,393 9/3/2024
4.25.0 40,501 8/18/2024
4.24.0 164,365 6/19/2024
4.23.1 58,283 5/23/2024
4.23.0 47,229 5/4/2024
4.22.0 46,150 4/13/2024
4.21.0 75,839 3/8/2024
4.20.0 181,745 12/13/2023
4.19.0 126,675 8/26/2023
4.18.0 50,748 6/28/2023
4.17.1 49,496 3/29/2023
4.17.0 26,604 2/21/2023
4.16.0 62,001 11/23/2022
4.15.1 46,100 9/9/2022
4.15.0 9,313 8/27/2022
4.14.0 155,479 4/13/2022
4.13.1 22,029 3/14/2022
4.13.0 4,859 3/7/2022
4.12.0 40,154 1/14/2022
4.11.0 32,188 11/24/2021
4.10.0 32,419 10/6/2021
4.9.0 14,053 9/21/2021
4.8.1 7,326 9/12/2021
4.8.0 5,863 9/10/2021
4.7.1 12,140 8/28/2021
4.7.0 3,298 8/24/2021
4.6.0 194,184 7/26/2021
4.5.0 64,787 5/29/2021
4.4.0 23,127 5/3/2021
4.3.2 42,000 3/14/2021
4.3.1 1,119 3/12/2021
4.3.0 18,817 2/24/2021
4.2.0 28,520 2/1/2021
4.1.0 19,114 1/18/2021
4.0.0 39,880 12/19/2020
3.20.0 55,680 11/25/2020
3.19.0 6,280 11/20/2020
3.18.1 11,409 11/12/2020
3.18.0 6,373 11/8/2020
3.17.0 25,003 10/9/2020
3.16.0 19,390 8/31/2020
3.15.1 20,844 7/8/2020
3.15.0 4,882 6/22/2020
3.14.0 16,899 5/7/2020
3.13.0 16,542 4/11/2020
3.12.0 36,683 12/10/2019
3.11.0 4,984 11/12/2019
3.10.0 10,121 11/6/2019
3.9.0 1,241 10/26/2019
3.8.0 11,926 9/27/2019
3.7.0 1,075 9/18/2019
3.6.0 3,274 8/20/2019
3.5.0 66,040 6/21/2019
3.4.0 1,967 4/30/2019
3.3.0 982 3/24/2019
3.2.1 604 3/4/2019
3.2.0 1,402 1/22/2019
3.1.1 528 12/22/2018
3.1.0 127 12/16/2018
3.0.1 346 11/30/2018
3.0.0 374 11/13/2018
2.9.1 433 10/26/2018
2.9.0 369 10/6/2018
2.8.0 489 9/12/2018
2.7.1 347 8/30/2018
2.7.0 303 8/12/2018
2.6.0 129 8/1/2018
2.5.0 313 7/12/2018
2.4.0 423 6/1/2018
2.3.0 54 5/29/2018
2.2.0 95 5/24/2018
2.1.1 80 5/19/2018
2.1.0 56 5/18/2018
2.0.1 247 5/13/2018
2.0 61 5/12/2018
1.1 103 5/2/2018
1.0 45 4/28/2018
Show more