certificate

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//EcdsaTypeID type id of dot
	EcdsaTypeID = "4b8b1751-4799-4578-af46-d9b339cf582f"
)

Variables

This section is empty.

Functions

func EcdsaTypeLives added in v0.2.0

func EcdsaTypeLives() []*dot.TypeLives

EcdsaTypeLives return type lives

func MakePriKey

func MakePriKey() (*ecdsa.PrivateKey, error)

MakePriKey Generate private key

Types

type Ecdsa

type Ecdsa struct {
}

Ecdsa dot

func (*Ecdsa) Certificate

func (c *Ecdsa) Certificate(pemFile string) (cert *x509.Certificate, err error)

Certificate Read certificate from pemFile

func (*Ecdsa) GenerateCaCertKey

func (c *Ecdsa) GenerateCaCertKey(caPri *ecdsa.PrivateKey, keyFile string, pemFile string, dnsName []string, orgName []string) (ca *x509.Certificate, err error)

GenerateCaCertKey Generate ca certificate and private key keyFile private key, pemFile ca certificate file

func (*Ecdsa) GenerateCertKey

func (c *Ecdsa) GenerateCertKey(caParent *x509.Certificate, caPri *ecdsa.PrivateKey, keyFile string, pemFile string, dnsName []string, orgName []string) (err error)

GenerateCertKey Generate subcertificate and private key keyFile private file, pemFile subcertificate file

func (*Ecdsa) PrivateKey

func (c *Ecdsa) PrivateKey(keyFile string) (pri *ecdsa.PrivateKey, err error)

PrivateKey Read private key from keyFile

func (*Ecdsa) PublicKey

func (c *Ecdsa) PublicKey(pemFile string) (pubKey *ecdsa.PublicKey, err error)

PublicKey Read public key from pemFile

Jump to

Keyboard shortcuts

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