Posh-ACME.net46.psd1

@{

RootModule = 'Posh-ACME.psm1'
ModuleVersion = '4.36.0'
GUID = 'f14adab4-278e-4dcb-b843-421fa5a5e688'
Author = 'Ryan Bolger'
Copyright = '(c) 2018 Ryan Bolger. All rights reserved.'
Description = @'
ACME protocol client for obtaining certificates using Let''s Encrypt (or other ACME compliant CA)
This is a custom build intended allow compatibility with .NET 4.6.1. It should not be used with PowerShell Core and you should only attempt to use RSA based key options.
'@

CompatiblePSEditions = @('Desktop','Core')
PowerShellVersion = '5.1'
DotNetFrameworkVersion = '4.6.1'

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @(
    'lib\BC.Crypto.1.8.8.dll'
    'System.Net.Http'
)

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = 'Posh-ACME.Format.ps1xml'

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = @(
    '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'
)

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()

# Variables to export from this module
VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @(
    'Get-PAAuthorizations'
)

PrivateData = @{

    PSData = @{

        # Tags applied to this module. These help with module discovery in online galleries.
        Tags = 'LetsEncrypt','ssl','tls','certificates','acme'

        # A URL to the license for this module.
        LicenseUri = 'https://github.com/rmbolger/Posh-ACME/blob/main/LICENSE'

        # A URL to the main website for this project.
        ProjectUri = 'https://github.com/rmbolger/Posh-ACME'

        # A URL to an icon representing this module.
        # IconUri = ''

        # ReleaseNotes of this module
        ReleaseNotes = @'
## 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.
'@


    }

}

}