Documentation
¶
Index ¶
- func Enroll(enFlags EnrollmentFlags) (*config.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) (*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 EnrollUpdb ¶ added in v0.14.5
func EnrollUpdb(enFlags EnrollmentFlags) error
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 ¶
type EnrollmentFlags struct {
Token *config.EnrollmentClaims
JwtToken *jwt.Token
JwtString string
CertFile string
KeyFile string
KeyAlg config.KeyAlgVar
IDName string
AdditionalCAs string
Username string
Password string
}
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.