certificates/policy/x509.go

15 lines
314 B
Go
Raw Permalink Normal View History

2022-01-17 22:36:13 +00:00
package policy
import (
"crypto/x509"
"net"
)
type X509NamePolicyEngine interface {
2022-04-26 11:12:16 +00:00
IsX509CertificateAllowed(cert *x509.Certificate) error
IsX509CertificateRequestAllowed(csr *x509.CertificateRequest) error
AreSANsAllowed(sans []string) error
IsDNSAllowed(dns string) error
IsIPAllowed(ip net.IP) error
2022-01-17 22:36:13 +00:00
}