Certes

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 new saves the account key before requesting account creation, and order finalize saves 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 location in 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, and NewOrder, NewOrderWithProfile and NewReplacementOrder overloads accepting typed Identifier lists. IP values are validated and sent in canonical form.
  • Certificate profile discovery through DirectoryMeta.Profiles, selection via NewOrderWithProfile, and the selected Order.Profile (#330). Profile orders can also include an ARI replacement certificate ID.
  • ACME Renewal Information (ARI, RFC 9773): Directory.RenewalInfo, GetRenewalInfoCertificateId() for CertificateChain and IEncodable, GetRenewalInfo() (suggested window, explanation URL and Retry-After) and NewReplacementOrder() extension methods on IAcmeContext, and Order.Replaces. Based on the proposal in #329 by @WhitWaldo.
  • CLI: order new --profile and --replaces, cert renewal-info <cert-path>, and the tls-alpn challenge type for order authz/order validate (with dns-01, http-01 and tls-alpn-01 aliases). IP addresses passed to order new are ordered as IP identifiers.

Changed

  • NewOrder, NewOrderWithProfile and NewReplacementOrder string overloads now send values that strictly parse as IP addresses as ip identifiers in canonical form, instead of dns. 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.
  • CertificationRequestBuilder encodes subject alternative names that are IP addresses as IP SANs instead of DNS names, and TlsAlpnCertificate does the same for its subject name.
  • When CsrInfo.CommonName is not set, Finalize/Generate use 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 --help described 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.Encryption to PfxEncryption.Legacy, or pass --legacy-encryption to certes 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.Generate now waits for an order to become ready before sending finalize. Previously it could finalize while the order was still pending, which ACME servers reject. The retryCount budget remains shared between this pre-finalize wait and post-finalize polling of pending/ processing. If challenge validation was never triggered, this can wait up to 60 server-directed Retry-After intervals by default.

Changed

  • CertificateChainExtensions.ToPem now always emits LF (\n) line endings, avoiding mixed \r\n/\n output 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/Certificates carried 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 in CertificateChain.Issuers before calling ToPem. PFX output is unaffected: the self-signed root was already excluded, and PfxBuilder.AddIssuer/AddIssuers supply 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.
  • PfxBuilder packages 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-certes CLI requires .NET 10 instead of .NET 6. Install the .NET 10 runtime before upgrading the tool.
  • The library no longer ships a net462 target. Supported library targets are net10.0, net8.0, and netstandard2.0.
  • The dotnet-certes CLI no longer ships Azure deployment commands. The az command group (az set, az dns, az app) has been removed. Existing automation should call Azure tooling directly and keep using certes for ACME account/order/certificate workflows.
  • The legacy System.CommandLine command 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 Link headers.
  • Preserve ACME server-directed Retry-After polling delays and honor explicit Generate retry budgets. Generate now 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 pass retryCount explicitly. 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.0 and net8.0 assets alongside retained netstandard2.0 compatibility. .NET 8/9 library consumers select net8.0; .NET 6/7 consumers select netstandard2.0 rather than the removed net6.0 asset. The latter path is compile-checked, not runtime-tested.
  • Use the latest 10.0.x SDK in CI and run the offline unit suite natively on .NET 10.
  • Move from Portable.BouncyCastle to BouncyCastle.Cryptography and 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-GET for loading ACME resources

Changed

  • Fix account key roll-over missing old key field #154
  • Update TLS-ALPN OID as draft-03

2.3.1 - 2018-10-16

Changed

  • Remove package reference to System.Net.Http (#158)

Added

  • [CLI] Add --friendly-name option to cert pfx command (#145)
  • [CLI] Add --issuer option to cert pfx command (#142)

2.3.0 - 2018-06-15

Added

  • Support tls-alpn-01 challenge (#125)
  • Add ACME error details to exception messages (#109)

2.2.2 - 2018-05-31

Changed

  • Revert Newtonsoft.Json to v10.0.3 for PowerShell Core (#112)

2.2.1 - 2018-05-15

Added

  • Strong name signing (#106)

2.2.0 - 2018-05-05

Added

  • Add Challenge.Error for challenge valdidation error (#99)

Changed

  • Fix certificate chain for PFX (#100)

2.1.0 - 2018-04-27

Added

  • Export full chain certification in PEM (#87)
  • Support custom HttpClient (#95)

Changed

  • Encapsulating ACME errors in exceptions (#65)
  • [CLI] Change argument talent-id to tenant-id (#86)

2.0.1 - 2018-03-17

Added

  • Add Processing status for challenges.

Changed

  • Fix Content-Type header 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-Type header
  • Fix full-chain-off option 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 Directory to replace AcmeDirectory
  • Add support for deleting registration
  • Add support for account key roll-over

Changed

  • Allow assigning SAN when creating CertificationRequestBuilder instances

1.0.7 - 2017-07-20

Changed

  • Fix error when parsing directory resource with meta property. (#5)
  • Edit this page
© 2018 Certes Project
Back to top