server

package
v0.0.0-...-10e2fbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config *config.ServerConfig) error

Types

type AboutResponse

type AboutResponse struct {
	Version   string `json:"version"`
	Timestamp string `json:"timestamp"`
}

<- /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 StoreEntryCRTDetailsResponse

type StoreEntryCRTDetailsResponse struct {
	Version    int         `json:"version"`
	Serial     string      `json:"serial"`
	KeyType    string      `json:"key_type"`
	Issuer     string      `json:"issuer"`
	SigAlg     string      `json:"sig_alg"`
	Extensions [][2]string `json:"extensions"`
}

type StoreEntryDetailsResponse

type StoreEntryDetailsResponse struct {
	StoreEntryResponse
	CRTDetails StoreEntryCRTDetailsResponse `json:"crt_details"`
}

<- /api/store/entry/detail/:name

type StoreEntryResponse

type StoreEntryResponse struct {
	Name      string    `json:"name"`
	DN        string    `json:"dn"`
	Key       bool      `json:"key"`
	CRT       bool      `json:"crt"`
	CSR       bool      `json:"csr"`
	CRL       bool      `json:"crl"`
	CA        bool      `json:"ca"`
	ValidFrom time.Time `json:"valid_from"`
	ValidTo   time.Time `json:"valid_to"`
}

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 StoreGenerateRequest struct {
	Name string `json:"name"`
	CA   string `json:"ca"`
}

type StoreLocalIssuerResponse

type StoreLocalIssuerResponse struct {
	Name string `json:"name"`
}

type StoreLocalIssuersResponse

type StoreLocalIssuersResponse struct {
	Issuers []StoreLocalIssuerResponse `json:"issuers"`
}

<- /api/store/local/issuers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL