x509

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToHex

func BytesToHex(bytes []byte) string

func FormatOID added in v0.10.0

func FormatOID(header, oldKey, newKey string) string

This function is needed to patch the Issuer/Subject(vid/pid) field of certificate to hex format. https://github.com/zigbee-alliance/distributed-compliance-ledger/issues/270

func ToBase64String added in v0.10.0

func ToBase64String(subject []byte) string

func ToSubjectAsText added in v0.10.0

func ToSubjectAsText(subject string) string

Types

type Certificate added in v0.10.0

type Certificate struct {
	Issuer         string
	SerialNumber   string
	Subject        string
	SubjectAsText  string
	SubjectKeyID   string
	AuthorityKeyID string
	Certificate    *x509.Certificate
}

func DecodeX509Certificate

func DecodeX509Certificate(pemCertificate string) (*Certificate, error)

func (Certificate) IsSelfSigned added in v0.10.0

func (c Certificate) IsSelfSigned() bool

func (Certificate) Verify added in v0.10.0

func (c Certificate) Verify(parent *Certificate) error

Jump to

Keyboard shortcuts

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