ssh_cert_authority

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertificationED25519

func NewCertificationED25519(caPem []byte, meta *CertMeta) (private string, public string, cert string, err error)

Only Support ED25519 Algorithm

func NewCertificationED25519WithPub

func NewCertificationED25519WithPub(caPem []byte, pubAuthKey []byte, meta *CertMeta) (cert string, err error)

func NewCertificationRSA

func NewCertificationRSA(caPem []byte, meta *CertMeta, bitSize int) (private string, public string, cert string, err error)

func NewCertificationRSAWithPub

func NewCertificationRSAWithPub(caPem []byte, pubAuthKey []byte, meta *CertMeta) (cert string, err error)

Types

type CertMeta

type CertMeta struct {
	KeyId      string
	Principals []string
	Before     time.Time
	After      time.Time
}

Jump to

Keyboard shortcuts

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