pki

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: 0BSD Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NatsServer *nats_server.Server
	NatsOpts   *nats_server.Options
)

Functions

func AcceptNKey

func AcceptNKey(id string) error

func ConfigureNats

func ConfigureNats() nats_server.Options

func DeleteNKey

func DeleteNKey(id string) error

func DenyNKey

func DenyNKey(id string) error

func FetchRootCA added in v0.0.6

func FetchRootCA(filename string) error

func GetNKey

func GetNKey(id string) (string, error)

func GetNKeysByType

func GetNKeysByType(set string) types.KeySet

func GetPubNKey

func GetPubNKey(keyType PubKeyType) (string, error)

func GetSproutID

func GetSproutID() string

func IsValidSproutID

func IsValidSproutID(id string) bool

func ListNKeysByType

func ListNKeysByType() types.KeysByType

func LoadRootCA

func LoadRootCA(binary string) error

func NKeyExists

func NKeyExists(id string, nkey string) (Registered bool, Matches bool)

func PutNKey

func PutNKey(id string) error

func RejectNKey

func RejectNKey(id string, nkey string) error

func ReloadNKeys

func ReloadNKeys() error

func RootCACached

func RootCACached(binary string) bool

func SetNATSServer

func SetNATSServer(s *nats_server.Server)

func SetupPKIFarmer

func SetupPKIFarmer()

func SetupPKISprout

func SetupPKISprout()

func UnacceptNKey

func UnacceptNKey(id string, nkey string) error

Types

type PubKeyType added in v0.0.3

type PubKeyType int
const (
	SproutPubNKey PubKeyType = iota
	FarmerPubNKey
	CliPubNKey
)

Jump to

Keyboard shortcuts

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