Documentation ¶
Index ¶
- func Enroll(enFlags EnrollmentFlags) (*config.Config, error)
- func FetchCertificates(urlRoot string, rootCaPool *x509.CertPool) []*x509.Certificate
- func FetchServerCert(urlRoot string) (*x509.Certificate, error)
- func ParseToken(tokenStr string) (*config.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 FetchCertificates ¶
func FetchCertificates(urlRoot string, rootCaPool *x509.CertPool) []*x509.Certificate
FetchCertificates will accecss 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) (*config.EnrollmentClaims, *jwt.Token, error)
func ValidateToken ¶
func ValidateToken(token *jwt.Token) (interface{}, error)
Types ¶
type EnrollmentFlags ¶
Click to show internal directories.
Click to hide internal directories.