Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoggingLevel int
Functions ¶
func ValidatePEM ¶
ValidatePEM checks either a CSR or PEM certificate block to ensure that it can be successfully decoded, passes very simple tests and is current. For valid PEMs it returns the common name, and for invalid PEMs it returns an error.
Types ¶
type StepAttestationRequestData ¶
type StepAttestationRequestData struct { Timestamp string `json:"timestamp"` AttestationData struct { PermanentIdentifier string `json:"permanentIdentifier"` } `json:"attestationData"` X509CertificateRequest struct { Raw string `json:"raw"` } `json:"x509CertificateRequest"` }
StepAttestationRequestData defines the structure of the incoming JSON from step-ca we currently only unmarshal the parts we are interested in, but this can be easily expanded or changed in the future
type StepResponseData ¶
type StepResponseData struct { Allow bool `json:"allow"` Data map[string]interface{} `json:"data,omitempty"` }
StepResponseData defines the structure of the JSON we will return to step-ca there is always an Allow boolean, and Data is optional. Data is a map[string]interface{} to allow for flexibility in the JSON returned
Click to show internal directories.
Click to hide internal directories.