Package x509 parses X.509-encoded keys and certificates.
type Certificate ¶
Certificate represents an X.509 certificate with additional fields for XMPP use.
func FromCertificate ¶
FromCertificate parses the Subject Alternative Name from the provided x509.Certificate and creates a new Certificate with the extra fields populated.