Allow setup of a CA pool from bytes that contain expired certs (#599)

Co-authored-by: Nate Brown <nbrown.us@gmail.com>
This commit is contained in:
forfuncsake
2021-12-10 14:24:56 +11:00
committed by GitHub
parent e31006d546
commit 1110756f0f
4 changed files with 69 additions and 16 deletions

9
cert/errors.go Normal file
View File

@@ -0,0 +1,9 @@
package cert
import "errors"
var (
ErrExpired = errors.New("certificate is expired")
ErrNotCA = errors.New("certificate is not a CA")
ErrNotSelfSigned = errors.New("certificate is not self-signed")
)