cert

package
v0.0.0-...-2a6e56a Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	Filename   string
	Cert       []byte
	ParsedCert *x509.Certificate
}

func NewCertFromBuffer

func NewCertFromBuffer(filename string, buffer []byte) (*Cert, error)

func NewCertFromFile

func NewCertFromFile(filename string) (*Cert, error)

func (*Cert) GetCertIssuer

func (c *Cert) GetCertIssuer() string

func (*Cert) GetCertSubject

func (c *Cert) GetCertSubject() string

func (*Cert) GetParsedCert

func (c *Cert) GetParsedCert() *x509.Certificate

func (*Cert) GetPublicKey

func (c *Cert) GetPublicKey() *rsa.PublicKey

func (*Cert) GetRawCert

func (c *Cert) GetRawCert() []byte

Jump to

Keyboard shortcuts

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