Changelog
All notable changes to this project will be documented in this file.
Unreleased
[5.0.0-beta.1] - 2026-09-28
First v5 prerelease, focused on cancellable library operations and CLI commands. DNS-PERSIST-01 is not included. See the v5 upgrade guide before upgrading. Public-CA interoperability has not been re-verified for this prerelease; automated issuance checks use the local Pebble test CA.
Breaking changes
- Core asynchronous interfaces, implementations, and convenience extensions now
accept a final optional
CancellationToken. This replaces the old signatures: recompile consumers and update custom implementations, mocks, callbacks, and method-group delegates. Most ordinary calls continue to compile unchanged. Library target frameworks and runtime dependency minimums are unchanged.
Added
- Cancellation throughout ACME discovery, HTTP requests, bad-nonce retries, authorization lookups, order pagination, alternate-chain downloads, and polling delays (#299). Cancellation is cooperative and does not interrupt synchronous cryptographic operations or roll back requests already accepted by a CA.
- CLI Ctrl+C cancellation with exit code 130; success remains 0 and parsing/operation errors remain 1. A second Ctrl+C permits immediate process termination. HTTP timeouts remain operation errors, not user cancellations.
Changed
- Upgrade the CLI to Spectre.Console.Cli 0.55.0 and asynchronous dispatch (#405), preserving command names, options, and normal JSON result shapes.
- With explicit
--out,account newsaves the account key before requesting account creation, andorder finalizesaves a newly generated certificate key before sending the CSR. Existing output files are atomically replaced before sending; the saved file remains even when the subsequent request fails or is cancelled. Use dedicated output paths and retain the keys for recovery. - When account/order creation succeeds but cancellation stops the follow-up
resource lookup, the CLI emits the returned
locationin JSON and exits 130. Requests cancelled before a response arrives still require reconciliation with the CA. Without explicit key output, in-flight cancellation can still lose a generated key; see the upgrade guide for persistence and recovery limits. - Refresh CLI/build/test dependencies and add Linux unit-coverage reporting and CodeQL analysis. Retire the obsolete Azure Functions integration-test helper; integration tests use local Pebble.
Fixed
- Preserve complete ACME responses and terminal protocol errors when cancellation arrives late, including account/order locations and successful account key changes. Cancelled discovery does not cache a cancelled task.
[4.1.0] - 2026-09-27
Added
- IP address identifiers (RFC 8738):
IdentifierType.Ip, andNewOrder,NewOrderWithProfileandNewReplacementOrderoverloads accepting typedIdentifierlists. IP values are validated and sent in canonical form. - Certificate profile discovery through
DirectoryMeta.Profiles, selection viaNewOrderWithProfile, and the selectedOrder.Profile(#330). Profile orders can also include an ARI replacement certificate ID. - ACME Renewal Information (ARI, RFC 9773):
Directory.RenewalInfo,GetRenewalInfoCertificateId()forCertificateChainandIEncodable,GetRenewalInfo()(suggested window, explanation URL andRetry-After) andNewReplacementOrder()extension methods onIAcmeContext, andOrder.Replaces. Based on the proposal in #329 by @WhitWaldo. - CLI:
order new --profileand--replaces,cert renewal-info <cert-path>, and thetls-alpnchallenge type fororder authz/order validate(withdns-01,http-01andtls-alpn-01aliases). IP addresses passed toorder neware ordered as IP identifiers.
Changed
NewOrder,NewOrderWithProfileandNewReplacementOrderstring overloads now send values that strictly parse as IP addresses asipidentifiers in canonical form, instead ofdns. CAs reject IP addresses as DNS identifiers, so previously such orders always failed.IOrderContext.Authorization(value, IdentifierType.Ip)compares IP identifiers by address rather than by text.CertificationRequestBuilderencodes subject alternative names that are IP addresses as IP SANs instead of DNS names, andTlsAlpnCertificatedoes the same for its subject name.- When
CsrInfo.CommonNameis not set,Finalize/Generateuse the first DNS name of at most 64 characters as the common name, instead of always the first identifier. IP-only orders produce a CSR without a common name.
Fixed
- CLI:
cert pfx --helpdescribed the command as exporting PEM.
[4.0.0] - 2026-09-23
Breaking changes
- PFX export now encrypts the private key and certificates with AES-256-CBC
(PBES2, PBKDF2 with HMAC-SHA256) instead of 3DES and 40-bit RC2. OpenSSL 3 and
Android reject the old algorithms, so PFX files from earlier versions failed to
load there without OpenSSL's legacy provider. Windows Server 2016 and earlier
cannot read AES-encrypted PFX files; set
PfxBuilder.EncryptiontoPfxEncryption.Legacy, or pass--legacy-encryptiontocertes cert pfx, to keep the old algorithms. The PFX integrity check remains HMAC-SHA1 with 1024 iterations, because BouncyCastle does not expose other settings.
Fixed
IOrderContextExtensions.Generatenow waits for an order to becomereadybefore sending finalize. Previously it could finalize while the order was stillpending, which ACME servers reject. TheretryCountbudget remains shared between this pre-finalize wait and post-finalize polling ofpending/processing. If challenge validation was never triggered, this can wait up to 60 server-directedRetry-Afterintervals by default.
Changed
CertificateChainExtensions.ToPemnow always emits LF (\n) line endings, avoiding mixed\r\n/\noutput across platforms.
4.0.0-beta.1 - 2026-09-23
First prerelease of the revived project. The major version reflects the breaking changes below. Issuance was verified against a local Pebble test CA (14 integration tests, plus a separate bad-nonce resilience run) and 186 offline unit tests; interoperability with public CAs such as Let's Encrypt has not been re-verified for this prerelease. Please report issues before the stable release.
Breaking changes
- Stop shipping and consulting embedded CA roots.
Resources/Certificatescarried DST Root CA X3, which expired on 2021-09-30, the Let's Encrypt staging root, and ISRG Root X1, and any of them could be appended to an exported chain without the caller asking. Certes is CA-agnostic, the set was Let's Encrypt-only and already stale, and serving an expired root is what broke older clients in 2021. PEM export no longer appends a root the server did not return. To keep one in PEM output, include it inCertificateChain.Issuersbefore callingToPem. PFX output is unaffected: the self-signed root was already excluded, andPfxBuilder.AddIssuer/AddIssuerssupply chain material for linking rather than causing a root to be exported. Missing roots also stop being fatal in this release, so chains now simply end at the highest issuer available. PfxBuilderpackages the linked certificate chain and no longer runs PKIX path validation when a self-signed root happens to be present. Validation previously depended on whether a root was supplied, so the same call validated or did not depending on its inputs. Issuers are still accepted only after verifying that they signed the certificate below them; issuer constraints, revocation and complete-path validity are the relying party's responsibility.- PFX and PEM export now reject a private key that does not match the leaf certificate instead of creating unusable output. The PFX ownership check applies with or without the full chain. These checks do not validate certificate trust.
- The
dotnet-certesCLI requires .NET 10 instead of .NET 6. Install the .NET 10 runtime before upgrading the tool. - The library no longer ships a
net462target. Supported library targets arenet10.0,net8.0, andnetstandard2.0. - The
dotnet-certesCLI no longer ships Azure deployment commands. Theazcommand group (az set,az dns,az app) has been removed. Existing automation should call Azure tooling directly and keep usingcertesfor ACME account/order/certificate workflows. - The legacy
System.CommandLinecommand implementations were removed from the CLI codebase. Runtime command parsing/dispatch now uses the Spectre path only.
Changed
- Retain cross-signed issuer alternates that share a subject name, instead of letting the last one added replace the others. The issuer is now chosen when the chain is built, by verifying which candidate signed the certificate below it. When several supplied alternates verify, as cross-signed pairs sharing a key do, candidates inside their validity period are preferred over expired ones, then a self-signed alternate is preferred and the chain ends there. Supplying both the self-signed and cross-signed alternates previously produced either chain depending on which was added last, and now selects the self-signed one regardless of order. Candidates that rank equally, such as two unexpired cross-signs under different roots, still resolve in the order they were added.
- Export the certificate chain up to the highest issuer available, instead of requiring a self-signed root. ACME servers are not expected to supply the root (RFC 8555, section 7.4.2), so PEM and PFX export previously failed on spec-compliant chains from any CA whose root this library did not embed. Issuers are now accepted only after verifying that they signed the certificate below them, so a certificate sharing an issuer's subject name is no longer treated as an issuer. Supplying issuers that did not sign the certificate still fails; supplying none exports the certificate alone. The PFX output continues to omit the self-signed root, which is used as a trust anchor only.
- Fall back to the default certificate chain and stop order-list pagination when
ACME responses omit optional
Linkheaders. - Preserve ACME server-directed
Retry-Afterpolling delays and honor explicitGenerateretry budgets.Generatenow defaults to 60 polling retries, so a pending or processing order may wait up to 60 server-directed intervals before failing; individual delays are capped at 15 minutes to prevent an abusive or malformed header from blocking indefinitely. Callers that need a shorter budget should passretryCountexplicitly. Recompile callers that rely on the optional default after upgrading, because C# embeds optional argument values at the call site. - Target .NET 10 for the CLI and modern tests. Ship library
net10.0andnet8.0assets alongside retainednetstandard2.0compatibility. .NET 8/9 library consumers selectnet8.0; .NET 6/7 consumers selectnetstandard2.0rather than the removednet6.0asset. The latter path is compile-checked, not runtime-tested. - Use the latest
10.0.xSDK in CI and run the offline unit suite natively on .NET 10. - Move from
Portable.BouncyCastletoBouncyCastle.Cryptographyand update tests/helpers to the newer PFX-loading APIs and DN validation behavior. - Mark formatter-based exception serialization APIs obsolete on the .NET 8/10 library asset, matching the platform APIs; legacy-target APIs remain available.
- Migrate JSON handling from Newtonsoft.Json to System.Text.Json for ACME wire
entities and JWS payload serialization, including enum handling for
[EnumMember]values and numeric enum tokens when required by ACME payloads. - [CLI] Write settings files, which contain account keys, atomically, with
owner-only (
0600) permissions on Linux and macOS.
3.0.0 - 2021-07-18
Versions 3.0.1 to 3.0.4 were published to nuget.org without matching tags or
changelog entries. Changes made after v3.0.0 and before the 2026 revival, such
as the optional RSA key size and network error propagation, may be included in
those releases and are not repeated under 4.0.0-beta.1.
Added
- Support alternate link relations (#232)
- [CLI] Add option for alternate link relation
- Implement external account binding support (library). (#231)
[2.3.4] - 2020-03-27
Changed
- Add user-agent header to HTTP requests
- Removed support for
netstanard1.3 - [CLI] Upgrade to
netcoreapp3.1
Added
- [CLI] Add options for algorithm in order finalize method
2.3.3 - 2018-12-16
Changed
- Fix EC account key encoding #173
2.3.2 - 2018-10-20
Changed
- Implement
POST-as-GETfor loading ACME resources
Changed
2.3.1 - 2018-10-16
Changed
- Remove package reference to
System.Net.Http(#158)
Added
- [CLI] Add
--friendly-nameoption tocert pfxcommand (#145) - [CLI] Add
--issueroption tocert pfxcommand (#142)
2.3.0 - 2018-06-15
Added
2.2.2 - 2018-05-31
Changed
- Revert
Newtonsoft.Jsontov10.0.3forPowerShell Core(#112)
2.2.1 - 2018-05-15
Added
- Strong name signing (#106)
2.2.0 - 2018-05-05
Added
- Add
Challenge.Errorfor challenge valdidation error (#99)
Changed
- Fix certificate chain for PFX (#100)
2.1.0 - 2018-04-27
Added
Changed
2.0.1 - 2018-03-17
Added
- Add
Processingstatus for challenges.
Changed
- Fix
Content-Typeheader for POST requests (#76)
2.0.0 - 2018-03-13
Added
- ACME v2 support
- Add support for JSON web signature using ECDSA key
1.1.4 - 2018-03-04
Changed
- Fix error when processing server response without
Content-Typeheader - Fix
full-chain-offoption for CLI
1.1.3 - 2017-11-23
Changed
- Fix MissingFieldException when running with BouncyCastle v1.8.1.3 (#22)
1.1.2 - 2017-09-27
Changed
- Fix CLI script error
1.1.1 - 2017-09-26
Added
- Add build target for net47
1.1.0 - 2017-08-17
Added
- Add
Directoryto replaceAcmeDirectory - Add support for deleting registration
- Add support for account key roll-over
Changed
- Allow assigning SAN when creating
CertificationRequestBuilderinstances
1.0.7 - 2017-07-20
Changed
- Fix error when parsing directory resource with meta property. (#5)