Documentation ¶
Index ¶
- func Enroll(enFlags EnrollmentFlags) (*ziti.Config, error)
- func EnrollUpdb(enFlags EnrollmentFlags) error
- func FetchCertificates(urlRoot string, rootCaPool *x509.CertPool) []*x509.Certificate
- func FetchServerCert(urlRoot string) (*x509.Certificate, error)
- func ParseToken(tokenStr string) (*ziti.EnrollmentClaims, *jwt.Token, error)
- func ValidateToken(token *jwt.Token) (interface{}, error)
- type EnrollmentFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.