extensions

package
v0.0.0-...-55632d2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpData

func DumpData(i interface{}, pad int, writer io.Writer)

DumpData dumps any structure as colon padded data to the terminal, mainly used to dump (long) integers or byte slices.

func DumpOID

func DumpOID(oid asn1.ObjectIdentifier, pad int, writer io.Writer)

DumpOID dumps the decoded OID to the terminal if available, else it will show the OID in dotted notation.

func DumpX509Extension

func DumpX509Extension(ext pkix.Extension, pad int, writer io.Writer)

DumpX509Extension dumps an X.509 certificate extension to the terminal.

Types

type AuthorityKeyID

type AuthorityKeyID struct {
	ID           []byte        `asn1:"optional,tag:0"`
	Issuer       asn1.RawValue `asn1:"optional,tag:1"`
	SerialNumber *big.Int      `asn1:"optional,tag:2"`
}

AuthorityKeyID RFC 5280, 4.2.1.1

Jump to

Keyboard shortcuts

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