Documentation ¶
Overview ¶
Package authrootstl provides a interface to parse & validate Microsoft Window's authroot.stl file
Index ¶
Constants ¶
View Source
const ( KeyUsageClientAuthentication = iota << 1 // 1.3.6.1.5.5.7.3.2 KeyUsageCodeSigning // 1.3.6.1.5.5.7.3.3 KeyUsageDocumentSigning // 1.3.6.1.4.1.311.10.3.12 KeyUsageEncryptingFileSystem // 1.3.6.1.4.1.311.10.3.4 KeyUsageIPSecEndSystem // 1.3.6.1.5.5.7.3.5 KeyUsageIPSecIKEIntermediate // 1.3.6.1.5.5.8.2.2 KeyUsageIPSecTunnelTermination // 1.3.6.1.5.5.7.3.6 KeyUsageIPSecUser // 1.3.6.1.5.5.7.3.7 KeyUsageOCSPSigning // 1.3.6.1.5.5.7.3.9 KeyUsageSecureEmail // 1.3.6.1.5.5.7.3.4 KeyUsageServerAuthentication // 1.3.6.1.5.5.7.3.1 KeyUsageTimeStamping // 1.3.6.1.5.5.7.3.8 )
Microsoft extended key usage designators
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrustedSubject ¶
type TrustedSubject struct { FriendlyName string SHA256Fingerprint string SHA1Fingerprint string MicrosoftExtendedKeyUsage int }
TrustedSubject describes a single trusted subject
func ParseData ¶
func ParseData(data []byte) ([]TrustedSubject, error)
ParseData will parse and validate the given data for an authroot.stl file
func ParseFile ¶
func ParseFile(filePath string) ([]TrustedSubject, error)
ParseFile will parse and validate the authroot.stl file at the given path
func ParseReader ¶
func ParseReader(r io.Reader) ([]TrustedSubject, error)
ParseFile will parse and validate the authroot.stl data from the given reader
Click to show internal directories.
Click to hide internal directories.