pem

package
v0.14.28 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	Key     interface{}
	EcKey   *ecdsa.PrivateKey
	RsaKey  *rsa.PrivateKey
	Cert    *x509.Certificate
	CertPem []byte
	KeyPem  []byte
}

func NewKeyPair

func NewKeyPair(privPath, pubPath, password string) (*KeyPair, error)

func (*KeyPair) IsEc

func (kp *KeyPair) IsEc() bool

func (*KeyPair) IsRsa

func (kp *KeyPair) IsRsa() bool

Jump to

Keyboard shortcuts

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