Documentation
¶
Overview ¶
Package othername is a minimal and incomplete implementation of the otherName SAN extension.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UPNOID = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 311, 20, 2, 3} SANOID = asn1.ObjectIdentifier{2, 5, 29, 17} )
Functions ¶
func ExtensionFromUPNs ¶
ExtensionFromUPNs build an otherName extension based on the provided UPNs.
func UPNs ¶
func UPNs(cert *x509.Certificate) (upns []string, err error)
UPNs returns all UPNs that are stored in certificates otherName extension.
func UserAndDomain ¶
func UserAndDomain(cert *x509.Certificate) (user string, domain string, err error)
UserAndDomain returns the user and domain from the first valid UPN in the certificate's otherName extension.
Types ¶
Click to show internal directories.
Click to hide internal directories.