Documentation ¶
Index ¶
- func CreateCertHandler(w http.ResponseWriter, r *http.Request)
- func CreateSSHCertificateHandler(w http.ResponseWriter, r *http.Request)
- func CreateSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
- func CreateTemplateHandler(w http.ResponseWriter, r *http.Request)
- func DeleteSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
- func DeleteTemplateHandler(w http.ResponseWriter, r *http.Request)
- func GenerateIntermediateHandler(w http.ResponseWriter, r *http.Request)
- func GetCAChainHandler(w http.ResponseWriter, r *http.Request)
- func GetCAHandler(w http.ResponseWriter, r *http.Request)
- func GetCRLHandler(w http.ResponseWriter, r *http.Request)
- func GetCertHandler(w http.ResponseWriter, r *http.Request)
- func GetSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
- func GetTemplateHandler(w http.ResponseWriter, r *http.Request)
- func ListCertsHandler(w http.ResponseWriter, r *http.Request)
- func ListSSHTemplatesHandler(w http.ResponseWriter, r *http.Request)
- func ListTemplatesHandler(w http.ResponseWriter, r *http.Request)
- func Logger(inner http.Handler, name string) http.Handler
- func ManageSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
- func ManageTemplateHandler(w http.ResponseWriter, r *http.Request)
- func PurgeCRLHandler(w http.ResponseWriter, r *http.Request)
- func PurgeHandler(w http.ResponseWriter, r *http.Request)
- func RevokeCertHandler(w http.ResponseWriter, r *http.Request)
- func SetCAChainHandler(w http.ResponseWriter, r *http.Request)
- func SetIntermediateCertHandler(w http.ResponseWriter, r *http.Request)
- func SignCertHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertHandler ¶
func CreateCertHandler(w http.ResponseWriter, r *http.Request)
CreateCertHandler ----------------------------------------------------------- Handler method used to build a new certificate with the provided common name based upon the provided template
func CreateSSHCertificateHandler ¶
func CreateSSHCertificateHandler(w http.ResponseWriter, r *http.Request)
CreateSSHCertificateHandler Accepts the HTTP request with all the required data to create a new SSH certificate and returns the newly created SSH certificate via HTTP response
func CreateSSHTemplateHandler ¶
func CreateSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
CreateSSHTemplateHandler Accepts the HTTP request with all the required information to create a new SSH tempalte and passes it to the SSH service
func CreateTemplateHandler ¶
func CreateTemplateHandler(w http.ResponseWriter, r *http.Request)
CreateTemplateHandler --------------------------------------------------- Handler method to capture JSON input from HTTP POST request and parse it into a types.Template object. Data from the request is validated and then stored in backend
func DeleteSSHTemplateHandler ¶
func DeleteSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
DeleteSSHTemplateHandler Accepts the HTTP request with the SSH template that is desired to be deleted and passes it to the SSH service
func DeleteTemplateHandler ¶
func DeleteTemplateHandler(w http.ResponseWriter, r *http.Request)
DeleteTemplateHandler ------------------------------------------------------- Handler method to delete a template from the storage backend that is retrieved from a URI variable
func GenerateIntermediateHandler ¶
func GenerateIntermediateHandler(w http.ResponseWriter, r *http.Request)
GenerateIntermediateHandler ------------------------------------------ Handler that receives parameters for generating a new intermediate CA and creates a CSR to be signed by the enterprise root CA (or another intermediate CA in the chain) and creates a new signing key that is stored in backened storage to be used for all new certificate generation. Alternatively, if the 'selfSigned' property is passed in the request as true, it will generate and return a self-signed CA certificate
func GetCAChainHandler ¶
func GetCAChainHandler(w http.ResponseWriter, r *http.Request)
GetCAChainHandler ----------------------------------------------------------------- Handler to retrieve the base64-encoded DER intermediate CA certificates associated with the CA chain from the storage storage and return them in PEM format
func GetCAHandler ¶
func GetCAHandler(w http.ResponseWriter, r *http.Request)
GetCAHandler ---------------------------------------------------------------------- Handler to retrieve the base64-encoded DER intermediate CA certificate from the storage storage and return it in PEM format
func GetCRLHandler ¶
func GetCRLHandler(w http.ResponseWriter, r *http.Request)
GetCRLHandler ---------------------------------------------------- Handler to retrieve the DER encoded CRL from the storage storage
func GetCertHandler ¶
func GetCertHandler(w http.ResponseWriter, r *http.Request)
GetCertHandler --------------------------------------------------------------------
func GetSSHTemplateHandler ¶
func GetSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
GetSSHTemplateHandler Accepts the HTTP request with the desired SSH template name to be retrieved from the SSH service and passes it back via HTTP response
func GetTemplateHandler ¶
func GetTemplateHandler(w http.ResponseWriter, r *http.Request)
GetTemplateHandler ---------------------------------------------------------- Handler method to retrieve a template from the storage backend using a URI variable and return its JSON representation
func ListCertsHandler ¶
func ListCertsHandler(w http.ResponseWriter, r *http.Request)
ListCertsHandler ------------------------------------------------------------------ Handler method used to retrieve the serial number of all certificates currently in the backend storage repository and return them
func ListSSHTemplatesHandler ¶
func ListSSHTemplatesHandler(w http.ResponseWriter, r *http.Request)
ListSSHTemplatesHandler Handles the required logic to retrieve a SSH template list from the SSH service and passes it back via HTTP response
func ListTemplatesHandler ¶
func ListTemplatesHandler(w http.ResponseWriter, r *http.Request)
ListTemplatesHandler --------------------------------------------------------- Handler method to retrieve a list of all templates from the storage backend using and return its JSON representation
func ManageSSHTemplateHandler ¶
func ManageSSHTemplateHandler(w http.ResponseWriter, r *http.Request)
ManageSSHTemplateHandler Accepts the HTTP request with the required information to update the data in the SSH template designated via `templateName`
func ManageTemplateHandler ¶
func ManageTemplateHandler(w http.ResponseWriter, r *http.Request)
ManageTemplateHandler ------------------------------------------------------- Handler method to capture JSON input from HTTP POST request and parse it into a types.Template object. Retrieves existing template from backend and updates its properties with the new request and overwrites the old template.
func PurgeCRLHandler ¶
func PurgeCRLHandler(w http.ResponseWriter, r *http.Request)
PurgeCRLHandler -------------------------------------------------- Handler that will purge all expired certificates from the CRL within a given buffer time that is passed in the request
func PurgeHandler ¶
func PurgeHandler(w http.ResponseWriter, r *http.Request)
PurgeHandler ----------------------------------------------------- Handler that will purge all expired certificates from both the certificate repository in the storage storage, as well as the CRL, within a given buffer time that is passed in the request
func RevokeCertHandler ¶
func RevokeCertHandler(w http.ResponseWriter, r *http.Request)
RevokeCertHandler ----------------------------------------------------------------- Handler method that updates to revoke a certificate for a specified, but optional, reason code. Updates the certificate object in the storage backend as well as generates a new CRL
func SetCAChainHandler ¶
func SetCAChainHandler(w http.ResponseWriter, r *http.Request)
SetCAChainHandler ----------------------------------------------------------------- Handler to capture a PEM encoded certificate bundle from the request and parse it into individual DER certificates. Each of these certificates are stored in base64 format in the storage storage
func SetIntermediateCertHandler ¶
func SetIntermediateCertHandler(w http.ResponseWriter, r *http.Request)
SetIntermediateCertHandler ---------------------------------------------- Handler that accepts the new intermediate CA certificate after it has been signed by the enterprise root CA (or another intermediate CA in the chain) and sets it as the "signing certificate" for the PKI service
func SignCertHandler ¶
func SignCertHandler(w http.ResponseWriter, r *http.Request)
SignCertHandler ------------------------------------------------------------- Handler method to read a CSR from HTTP request and generate a CA-signed certificate from it. Before being signed, the CSR's properties and extensions are compared against a template
Types ¶
This section is empty.