authrootstl

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

README

DS

Go Report Card Godoc Releases LICENSE

This package provides a mechanism to parse and validate Microsoft Windows' authroot.stl.

Usage & Examples

Examples can be found on the documentation for the library

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL