Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePeerCertificates ¶
func ValidatePeerCertificates(ctx context.Context, cquery ctypes.QueryClient, certs []*x509.Certificate, usage []x509.ExtKeyUsage) (sdk.Address, *x509.Certificate, error)
Types ¶
type CertificateInvalidError ¶
type CertificateInvalidError struct { Cert *x509.Certificate Reason InvalidReason }
func (CertificateInvalidError) Error ¶
func (e CertificateInvalidError) Error() string
type InvalidReason ¶
type InvalidReason int
const ( EmptyPeerCertificate InvalidReason = iota TooManyPeerCertificates InvalidCN InvalidSN Expired Decode X509Parse Verify )
Click to show internal directories.
Click to hide internal directories.