---
title: "github.com/mholt/certmagic v0.21.0 Breaking Changes"
description: "What each github.com/mholt/certmagic release removed, renamed or changed: 46 breaking changes in 6 versions on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/github.com/mholt/certmagic
last_updated: 2026-12-04
---

# github.com/mholt/certmagic breaking changes

github.com/mholt/certmagic v0.21.0 (May 7, 2024) is its newest release with breaking changes, 5 of them. The first: Removed github.com/mholt/certmagic.ACMEDNSProvider. Every breaking API change we have recorded in github.com/mholt/certmagic on Go modules: 46 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v0.25.6`, released September 30, 2026. 

Packages on Go modules run on Go. [Go end of life dates](https://since.dev/calendar/go.md).

- From [v0.16.0](#v-v0-16-0) to [v0.21.0](#v-v0-21-0): 20 breaking changes in 5 versions.

## github.com/mholt/certmagic v0.21.0 breaking changes

github.com/mholt/certmagic v0.21.0, released May 7, 2024: 5 breaking changes.

- **Removed** `github.com/mholt/certmagic.ACMEDNSProvider`  

github.com/mholt/certmagic.ACMEDNSProvider was removed in github.com/mholt/certmagic v0.21.0 [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.21.0)
- **Behavior changed**  

DNS challenge propagation checks now query authoritative nameservers only when default resolvers are used. Users with custom resolvers may see different propagation check results and should verify their DNS challenge setup. [github.com](https://github.com/caddyserver/certmagic/releases/tag/v0.21.0)
- **Signature changed** `github.com/mholt/certmagic.Cache.RemoveManaged`  

Was func RemoveManaged(\[\]string); now func RemoveManaged(\[\]SubjectIssuer). [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.21.0)
- **Signature changed** `github.com/mholt/certmagic.CertificateResource.IssuerData`  

Was IssuerData any; now IssuerData json.RawMessage. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.21.0)
- **Signature changed** `github.com/mholt/certmagic.DNS01Solver.DNSProvider`  

Was DNSProvider ACMEDNSProvider; now DNSProvider DNSProvider. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.21.0)

## github.com/mholt/certmagic v0.20.0 breaking changes

github.com/mholt/certmagic v0.20.0, released December 6, 2023: 5 breaking changes.

- **Behavior changed**  

Hostnames ending in .home.arpa are now considered internal, which can change how they are handled. [github.com](https://github.com/caddyserver/certmagic/releases/tag/v0.20.0)
- **Behavior changed**  

Certificate and OCSP staple storage cleaning now uses distributed locking and persisted state, so only one instance cleans at a time and cleaning runs less often after restarts. [github.com](https://github.com/caddyserver/certmagic/releases/tag/v0.20.0)
- **Default changed**  

Retry backoff timings have been tuned, so retry timing may differ from earlier versions. [github.com](https://github.com/caddyserver/certmagic/releases/tag/v0.20.0)
- **Signature changed** `github.com/mholt/certmagic.CleanStorage`  

Was func CleanStorage(context.Context, Storage, CleanStorageOptions); now func CleanStorage(context.Context, Storage, CleanStorageOptions) error. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.20.0)
- **Signature changed** `github.com/mholt/certmagic.OnDemandConfig.DecisionFunc`  

The DecisionFunc for On-Demand TLS now takes a context.Context as its first argument, carrying the ClientHelloInfo for logging. Update custom decision functions to accept the new argument. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.20.0)

## github.com/mholt/certmagic v0.19.0 breaking changes

github.com/mholt/certmagic v0.19.0, released July 10, 2023: 5 breaking changes.

- **Removed** `github.com/mholt/certmagic.Config.Unmanage`  

Config.Unmanage() was removed because it did not rely on the config; use Cache.RemoveManaged() instead, which stops maintenance of a managed cert removed from the cache. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.19.0)
- **Behavior changed** `Config.Manage*`  

If a managed certificate for the given names is already in the cache, the Config.Manage\* methods now do essentially nothing instead of reloading it from storage. [github.com](https://github.com/caddyserver/certmagic/releases/tag/v0.19.0)
- **Signature changed** `github.com/mholt/certmagic.Config.CacheUnmanagedCertificatePEMBytes`  

Was func CacheUnmanagedCertificatePEMBytes(context.Context, \[\]byte, \[\]byte, \[\]string) error; now func CacheUnmanagedCertificatePEMBytes(context.Context, \[\]byte, \[\]byte, \[\]string) (string, error). [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.19.0)
- **Signature changed** `github.com/mholt/certmagic.Config.CacheUnmanagedCertificatePEMFile`  

Was func CacheUnmanagedCertificatePEMFile(context.Context, string, string, \[\]string) error; now func CacheUnmanagedCertificatePEMFile(context.Context, string, string, \[\]string) (string, error). [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.19.0)
- **Signature changed** `github.com/mholt/certmagic.Config.CacheUnmanagedTLSCertificate`  

Was func CacheUnmanagedTLSCertificate(context.Context, tls.Certificate, \[\]string) error; now func CacheUnmanagedTLSCertificate(context.Context, tls.Certificate, \[\]string) (string, error). [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.19.0)

## github.com/mholt/certmagic v0.18.0 breaking changes

github.com/mholt/certmagic v0.18.0, released June 8, 2023: 3 breaking changes.

- **Removed** `github.com/mholt/certmagic.Config.Managers`  

github.com/mholt/certmagic.Config.Managers was removed in github.com/mholt/certmagic v0.18.0 [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.18.0)
- **Behavior changed**  

On-demand TLS now checks whether the subject is allowed before accessing storage. Code that relied on storage being read for disallowed subjects may see different behavior. [github.com](https://github.com/caddyserver/certmagic/releases/tag/v0.18.0)
- **Configuration changed** `Managers`  

Certificate Managers were moved into the on-demand config because they only operate at handshake time. Code that sets Managers elsewhere must move that setting into the on-demand config. [github.com](https://github.com/caddyserver/certmagic/releases/tag/v0.18.0)

## github.com/mholt/certmagic v0.17.0 breaking changes

github.com/mholt/certmagic v0.17.0, released August 31, 2022: 2 breaking changes.

- **Removed** `github.com/mholt/certmagic.CertificateEventData`  

github.com/mholt/certmagic.CertificateEventData was removed in github.com/mholt/certmagic v0.17.0 [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.17.0)
- **Signature changed** `github.com/mholt/certmagic.Config.OnEvent`  

Was OnEvent func(string, any); now OnEvent func(context.Context, string, map\[string\]any) error. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.17.0)

## github.com/mholt/certmagic v0.16.0 breaking changes

github.com/mholt/certmagic v0.16.0, released March 25, 2022: 26 breaking changes.

- **Removed** `github.com/mholt/certmagic.ACMEManager`  

The ACMEManager type is now named ACMEIssuer. Update references to use the new name. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Removed** `github.com/mholt/certmagic.ErrNotExist`  

Storage methods now return fs.ErrNotExist from io/fs when a file or key is missing. Code comparing against certmagic.ErrNotExist must switch to fs.ErrNotExist. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Removed** `github.com/mholt/certmagic.NewACMEManager`  

github.com/mholt/certmagic.NewACMEManager was removed in github.com/mholt/certmagic v0.16.0 [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Renamed** `github.com/mholt/certmagic.CertificateManager`  

The CertificateManager type is now named Manager. Update references to use the new name. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Signature changed** `github.com/mholt/certmagic.CleanUpOwnLocks`  

Was func CleanUpOwnLocks(\*zap.Logger); now func CleanUpOwnLocks(context.Context, \*zap.Logger). [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Signature changed** `github.com/mholt/certmagic.Config.CacheManagedCertificate`  

Was func CacheManagedCertificate(string) (Certificate, error); now func CacheManagedCertificate(context.Context, string) (Certificate, error). [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Signature changed** `github.com/mholt/certmagic.Config.CacheUnmanagedCertificatePEMBytes`  

Was func CacheUnmanagedCertificatePEMBytes(\[\]byte, \[\]byte, \[\]string) error; now func CacheUnmanagedCertificatePEMBytes(context.Context, \[\]byte, \[\]byte, \[\]string) error. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Signature changed** `github.com/mholt/certmagic.Config.CacheUnmanagedCertificatePEMFile`  

Was func CacheUnmanagedCertificatePEMFile(string, string, \[\]string) error; now func CacheUnmanagedCertificatePEMFile(context.Context, string, string, \[\]string) error. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Signature changed** `github.com/mholt/certmagic.Config.CacheUnmanagedTLSCertificate`  

Was func CacheUnmanagedTLSCertificate(tls.Certificate, \[\]string) error; now func CacheUnmanagedTLSCertificate(context.Context, tls.Certificate, \[\]string) error. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)
- **Signature changed** `github.com/mholt/certmagic.Config.Managers`  

Was Managers \[\]CertificateManager; now Managers \[\]Manager. [pkg.go.dev](https://pkg.go.dev/github.com/mholt/certmagic@v0.16.0)

And 16 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
