sign

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(db certdb.Accessor, configuration config.Config, signer ocsp.Signer) http.Handler

func ParseRequestData

func ParseRequestData(r *http.Request) (*model.SignRequest, error)

Types

type Handler

type Handler struct {
	DbAccessor certdb.Accessor
	// contains filtered or unexported fields
}

func (*Handler) Handle

func (handler *Handler) Handle(w http.ResponseWriter, r *http.Request) error

Sign godoc @Summary Sign a Certificate Signing Request @Description The provided certificate will be signed with the root CA certificate. The expiration time in hours will be used for the certificate expiration. The hostnames will be used for the subject alternative name field. The User ID will be used in the common name field. @Accept json @Produce json @Param payload body model.SignRequest true "Request payload" @Success 200 {object} x509.Certificate @Router /sign [post]

type Result

type Result struct {
	Certifcate string `json:"certificate"`
}

Only needed for swagger generation

Jump to

Keyboard shortcuts

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