2021-12-09 20:24:56 -07:00
|
|
|
package cert
|
|
|
|
|
2023-05-04 15:09:42 -06:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
2021-12-09 20:24:56 -07:00
|
|
|
|
|
|
|
var (
|
2023-05-04 15:09:42 -06:00
|
|
|
ErrRootExpired = errors.New("root certificate is expired")
|
|
|
|
ErrExpired = errors.New("certificate is expired")
|
|
|
|
ErrNotCA = errors.New("certificate is not a CA")
|
|
|
|
ErrNotSelfSigned = errors.New("certificate is not self-signed")
|
|
|
|
ErrBlockListed = errors.New("certificate is in the block list")
|
|
|
|
ErrSignatureMismatch = errors.New("certificate signature did not match")
|
2021-12-09 20:24:56 -07:00
|
|
|
)
|