Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func ParseRequestData ¶
func ParseRequestData(r *http.Request) (*model.SignRequest, error)
Types ¶
type Handler ¶
func (*Handler) Handle ¶
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]
Click to show internal directories.
Click to hide internal directories.