keychain

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keychain

type Keychain struct {
	// contains filtered or unexported fields
}

Keychain holds many public keys and private keys.

func New

func New(dir string) *Keychain

New returns a new keychain.

func (*Keychain) Certs

func (k *Keychain) Certs() map[string]string

Certs returns the certs in the keychain.

func (*Keychain) RandKey

func (k *Keychain) RandKey() *PrivateKey

RandKey returns a random private key.

type PrivateKey

type PrivateKey struct {
	Kid string
	Key *rsa.PrivateKey
}

PrivateKey holds the internal state of the private key.

type PublicKey

type PublicKey struct {
	Kid string
	Key *rsa.PublicKey
}

PublicKey holds the internal state of the public key.

Jump to

Keyboard shortcuts

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