pki

package
Version: v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OIDExtensionKeyUsage         = []int{2, 5, 29, 15}
	OIDExtensionExtendedKeyUsage = []int{2, 5, 29, 37}
)

Copied from x509.go

Functions

func BuildASN1KeyUsageRequest

func BuildASN1KeyUsageRequest(usage x509.KeyUsage) (pkix.Extension, error)

Adapted from x509.go

func ExtKeyUsageFromOID

func ExtKeyUsageFromOID(oid asn1.ObjectIdentifier) (eku x509.ExtKeyUsage, ok bool)

func OIDFromExtKeyUsage

func OIDFromExtKeyUsage(eku x509.ExtKeyUsage) (oid asn1.ObjectIdentifier, ok bool)

OIDFromExtKeyUsage returns the ASN1 Identifier for a x509.ExtKeyUsage

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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