handlers

package
v0.0.0-...-d4aef9d Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CaFolder   = "ca"
	CertFolder = "cert"
)

Variables

This section is empty.

Functions

func CACRLURL

func CACRLURL(caSerial int64) string

func CAUrl

func CAUrl(caSerial int64) string

func CertUrl

func CertUrl(caSerial, certSerial int64) string

func DeleteCRL

func DeleteCRL(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCA

func GetCA(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCACRLCER

func GetCACRLCER(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCACRLPEM

func GetCACRLPEM(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCACRLPEMTXT

func GetCACRLPEMTXT(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCACertificateCER

func GetCACertificateCER(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCACertificatePEM

func GetCACertificatePEM(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCACertificatePEMTXT

func GetCACertificatePEMTXT(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCAPrivateKeyCER

func GetCAPrivateKeyCER(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCAPrivateKeyPEM

func GetCAPrivateKeyPEM(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCAPrivateKeyPEMTXT

func GetCAPrivateKeyPEMTXT(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCAs

func GetCAs(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCRL

func GetCRL(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCert

func GetCert(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCertificateCER

func GetCertificateCER(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCertificatePEM

func GetCertificatePEM(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCertificatePEMTXT

func GetCertificatePEMTXT(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCertificatePrivateKeyCER

func GetCertificatePrivateKeyCER(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCertificatePrivateKeyPEM

func GetCertificatePrivateKeyPEM(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCertificatePrivateKeyPEMTXT

func GetCertificatePrivateKeyPEMTXT(store *liftca.Store, r *ht.Request) *ht.Answer

func GetCerts

func GetCerts(store *liftca.Store, r *ht.Request) *ht.Answer

func ObtainCA

func ObtainCA(store *liftca.Store, r *ht.Request) (*liftca.Parcel, *ht.Answer)

func ObtainCAAndCert

func ObtainCAAndCert(store *liftca.Store, r *ht.Request) (*liftca.Parcel, *liftca.Parcel, *ht.Answer)

func PostCA

func PostCA(store *liftca.Store, r *ht.Request) *ht.Answer

func PostCRL

func PostCRL(store *liftca.Store, r *ht.Request) *ht.Answer

func PostCert

func PostCert(store *liftca.Store, r *ht.Request) *ht.Answer

Types

type JSONCARequest

type JSONCARequest struct {
	Visible        bool   `json:"visible"`
	Name           string `json:"name"`
	PEMCertificate string `json:"pemCertificate"`
	PEMKey         string `json:"pemKey"`
	PEMKeyPassword string `json:"pemKeyPassword"`
}

type JSONCAResponse

type JSONCAResponse struct {
	Self         string `json:"self"`
	SerialNumber string `json:"serialNumber"`
	Name         string `json:"name"`
	SubjectKeyID string `json:"subjectKeyID"`
	Visible      bool   `json:"visible"`
}

func JSONCAResponseFromParcel

func JSONCAResponseFromParcel(p *liftca.Parcel) *JSONCAResponse

type JSONCRLRequest

type JSONCRLRequest struct {
	SerialNumber string `json:"serialNumber"`
}

type JSONCRLResponse

type JSONCRLResponse struct {
	Self          string   `json:"self"`
	SerialNumbers []string `json:"serialNumbers"`
}

type JSONCertRequest

type JSONCertRequest struct {
	Host string `json:"host"`
}

type JSONCertResponse

type JSONCertResponse struct {
	Host           string `json:"host"`
	Self           string `json:"self"`
	SerialNumber   string `json:"serialNumber"`
	SubjectKeyID   string `json:"subjectKeyID"`
	AuthorityKeyID string `json:"authorityKeyID"`
}

func JSONCertResponseFromParcel

func JSONCertResponseFromParcel(caId int64, p *liftca.Parcel) *JSONCertResponse

Jump to

Keyboard shortcuts

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