cauth

package
v0.0.0-...-7e24c04 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RingNumberOid asn1.ObjectIdentifier = []int{2, 5, 13, 37}
)

Functions

This section is empty.

Types

type Ca

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

func LoadCa

func LoadCa(path string, numBootNodes, numRings uint32) (*Ca, error)

LoadCa initializes a CA from a file path

func NewCa

func NewCa(path string) (*Ca, error)

Create and returns a new certificate authority instance. Generates a private/public keypair for internal use.

func (*Ca) Addr

func (c *Ca) Addr() string

Returns the address(ip:port) of the certificate authority, this can be directly used as input to the ifrit client entry address.

func (*Ca) NewGroup

func (c *Ca) NewGroup(ringNum, bootNodes uint32) error

NewGroup creates a new Ifrit group.

func (*Ca) SaveCertificate

func (c *Ca) SaveCertificate() error

SaveCertificate Public key / certificate to the given io object.

func (*Ca) SavePrivateKey

func (c *Ca) SavePrivateKey() error

SavePrivateKey writes the CA private key to the given io object.

func (*Ca) Shutdown

func (c *Ca) Shutdown()

Shutsdown the certificate authority instance, will no longer serve signing requests.

func (*Ca) Start

func (c *Ca) Start(host, port string) error

Starts serving certificate signing requests, requires the amount of gossip rings to be used in the network between ifrit clients.

Jump to

Keyboard shortcuts

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