oids

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 3 Imported by: 0

README

oids

Package oids contains functionality for working with ASN.1 object identifiers.

Documentation

Overview

Package oids contains functionality for working with ASN.1 object identifiers.

Index

Constants

This section is empty.

Variables

View Source
var (
	OIDKeyUsage                      = asn1.ObjectIdentifier{2, 5, 29, 15}
	OIDExtendedKeyUsage              = asn1.ObjectIdentifier{2, 5, 29, 37}
	OIDSubjectEmail                  = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 9, 1}
	OIDSubjectJOILocality            = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 311, 60, 2, 1, 1}
	OIDSubjectJOIState               = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 311, 60, 2, 1, 2}
	OIDSubjectJOICountry             = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 311, 60, 2, 1, 3}
	OIDSubjectBusinessCategory       = asn1.ObjectIdentifier{2, 5, 4, 15}
	OIDSubjectDA                     = asn1.ObjectIdentifier{2, 5, 29, 9}
	OIDSubjectDADateOfBirth          = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 9, 1}
	OIDSubjectDAPlaceOfBirth         = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 9, 2}
	OIDSubjectDAGender               = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 9, 3}
	OIDSubjectDACountryOfCitizenship = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 9, 4}
	OIDSubjectDACountryOfResidence   = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 9, 5}
)

Common object identifiers.

Functions

func StringToOID

func StringToOID(s string) (asn1.ObjectIdentifier, error)

StringToOID converts a string representation of an OID to an asn1.ObjectIdentifier object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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