certdata

package
v0.0.0-...-033c8b6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Cert   *x509.Certificate
	Issuer *x509.Certificate
	Type   string
}

Data holds the certificate and relevant information Type can be DV, OV, EV, PS, CS, EVCS, TS, OCSP, CA

func Load

func Load(der []byte) (*Data, error)

Load raw certificate bytes into a Data struct

func (*Data) SetIssuer

func (d *Data) SetIssuer(der []byte) error

SetIssuer sets the issuer of a certificate TODO: Validate if the correct issuer is given

Jump to

Keyboard shortcuts

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