enroll

package
v0.23.32 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 33 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enroll

func Enroll(enFlags EnrollmentFlags) (*ziti.Config, error)

func EnrollUpdb added in v0.14.5

func EnrollUpdb(enFlags EnrollmentFlags) error

func FetchCertificates

func FetchCertificates(urlRoot string, rootCaPool *x509.CertPool) []*x509.Certificate

FetchCertificates will access the server insecurely to pull down the latest CA to be used to communicate with the server adding certificates to the provided pool

func FetchServerCert

func FetchServerCert(urlRoot string) (*x509.Certificate, error)

func ParseToken

func ParseToken(tokenStr string) (*ziti.EnrollmentClaims, *jwt.Token, error)

func ValidateToken

func ValidateToken(token *jwt.Token) (interface{}, error)

Types

type EnrollmentFlags

type EnrollmentFlags struct {
	Token         *ziti.EnrollmentClaims
	JwtToken      *jwt.Token
	JwtString     string
	CertFile      string
	KeyFile       string
	KeyAlg        ziti.KeyAlgVar
	IDName        string
	AdditionalCAs string
	Username      string
	Password      string
	Verbose       bool
}

func (*EnrollmentFlags) GetCertPool added in v0.14.5

func (enFlags *EnrollmentFlags) GetCertPool() (*x509.CertPool, []*x509.Certificate)

Jump to

Keyboard shortcuts

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