You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have some predefined errors like:
var (
ErrNoCertAvailable=errors.New("no certificate available")
ErrSomethingWrong=errors.New("...")
// TBD.
)
So the client code could do:
iferrors.Is(err, certmagic.ErrNoCertAvailable) { // Do something here }
So far we have some tricky logic that selects a certificate for the connection, which involves certmagic, static certificates, and some internal tools.
Having the ability to check for particular error would be really helpful.
Activity
francislavoie commentedon Jan 12, 2026
Seems reasonable, PRs welcome if you want to introduce this
mholt commentedon Jan 12, 2026
Yeah, I agree. Sounds good to me if you want to submit a PR with your specific suggestions that work for you!