Documentation ¶
Index ¶
- func Run(config *config.ServerConfig) error
- type AboutResponse
- type BasicConstraintExtensionSpec
- type ExtKeyUsageExtensionSpec
- type ExtensionSpec
- type KeyUsageExtensionSpec
- type ServerErrorResponse
- type StoreCAResponse
- type StoreCAsResponse
- type StoreEntriesResponse
- type StoreEntryCRTDetailsResponse
- type StoreEntryDetailsResponse
- type StoreEntryResponse
- type StoreGenerateACMERequest
- type StoreGenerateLocalRequest
- type StoreGenerateRemoteRequest
- type StoreGenerateRequest
- type StoreLocalIssuerResponse
- type StoreLocalIssuersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(config *config.ServerConfig) error
Types ¶
type AboutResponse ¶
<- /api/about
type BasicConstraintExtensionSpec ¶
type BasicConstraintExtensionSpec struct { ExtensionSpec CA bool `json:"ca"` PathLen int `json:"path_len"` }
type ExtKeyUsageExtensionSpec ¶
type ExtKeyUsageExtensionSpec struct { ExtensionSpec Any bool `json:"any"` ServerAuth bool `json:"server_auth"` ClientAuth bool `json:"client_auth"` CodeSigning bool `json:"code_signing"` EmailProtection bool `json:"email_protection"` IPSECEndSystem bool `json:"ipsec_end_system"` IPSECTunnel bool `json:"ipsec_tunnel"` IPSECUser bool `json:"ipsec_user"` TimeStamping bool `json:"time_stamping"` OCSPSigning bool `json:"ocsp_signing"` MicrosoftServerGatedCrypto bool `json:"microsoft_server_gated_crypto"` NetscapeServerGatedCrypto bool `json:"netscape_server_gated_crypto"` MicrosoftCommercialCodeSigning bool `json:"microsoft_commercial_code_signing"` MicrosoftKernelCodeSigning bool `json:"microsoft_kernel_code_signing"` }
type ExtensionSpec ¶
type ExtensionSpec struct {
Enabled bool `json:"enabled"`
}
type KeyUsageExtensionSpec ¶
type KeyUsageExtensionSpec struct { ExtensionSpec DigitalSignature bool `json:"digital_signature"` ContentCommitment bool `json:"content_commitment"` KeyEncipherment bool `json:"key_encipherment"` DataEncipherment bool `json:"data_Encipherment"` KeyAgreement bool `json:"key_agreement"` CertSign bool `json:"cert_sign"` CRLSign bool `json:"crl_sign"` EncipherOnly bool `json:"encipher_only"` DecipherOnly bool `json:"decipher_only"` }
type ServerErrorResponse ¶
type ServerErrorResponse struct {
Message string `json:"message"`
}
<- /api/*
type StoreCAResponse ¶
type StoreCAResponse struct {
Name string `json:"name"`
}
type StoreCAsResponse ¶
type StoreCAsResponse struct {
CAs []StoreCAResponse `json:"cas"`
}
<- /api/store/cas
type StoreEntriesResponse ¶
type StoreEntriesResponse struct {
Entries []StoreEntryResponse `json:"entries"`
}
<- /api/store/entries
type StoreEntryDetailsResponse ¶
type StoreEntryDetailsResponse struct { StoreEntryResponse CRTDetails StoreEntryCRTDetailsResponse `json:"crt_details"` }
<- /api/store/entry/detail/:name
type StoreEntryResponse ¶
type StoreGenerateACMERequest ¶
type StoreGenerateACMERequest struct { StoreGenerateRequest Domains []string `json:"domains"` KeyType string `json:"key_type"` }
<- /api/store/acme/generate
type StoreGenerateLocalRequest ¶
type StoreGenerateLocalRequest struct { StoreGenerateRequest DN string `json:"dn"` KeyType string `json:"key_type"` Issuer string `json:"issuer"` ValidFrom time.Time `json:"valid_from"` ValidTo time.Time `json:"valid_to"` KeyUsage KeyUsageExtensionSpec `json:"key_usage"` ExtKeyUsage ExtKeyUsageExtensionSpec `json:"ext_key_usage"` BasicConstraint BasicConstraintExtensionSpec `json:"basic_constraint"` }
<- /api/store/local/generate
type StoreGenerateRemoteRequest ¶
type StoreGenerateRemoteRequest struct { StoreGenerateRequest DN string `json:"dn"` KeyType string `json:"key_type"` }
<- /api/store/remote/generate
type StoreGenerateRequest ¶
type StoreLocalIssuerResponse ¶
type StoreLocalIssuerResponse struct {
Name string `json:"name"`
}
type StoreLocalIssuersResponse ¶
type StoreLocalIssuersResponse struct {
Issuers []StoreLocalIssuerResponse `json:"issuers"`
}
<- /api/store/local/issuers
Click to show internal directories.
Click to hide internal directories.