Documentation ¶
Overview ¶
Package subjhash contains methods for replicating the functionality of `openssl x509 -subject_hash`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCertificate = errors.New("invalid certificate")
ErrInvalidCertificate is returned when an invalid certificate is supplied.
Functions ¶
This section is empty.
Types ¶
type SubjHash ¶
type SubjHash [4]byte
SubjHash is the certificate hash with fmt.Stringer interface support.
func Issuer ¶
func Issuer(cert *x509.Certificate) (SubjHash, error)
Issuer takes a *x509.Certificate and returns the openssl 1.0.1+ compatible issuer_hash for the certificate.
Click to show internal directories.
Click to hide internal directories.