Versions in this module Expand all Collapse all v1 v1.0.2 Aug 2, 2023 Changes in this version + func DecodeSCEPResponse(ctx context.Context, r *http.Response) (interface{}, error) + func EncodeSCEPRequest(ctx context.Context, r *http.Request, request interface{}) error + func EndpointLoggingMiddleware(logger log.Logger) endpoint.Middleware + func MakeHTTPHandler(e *Endpoints, svc Service, logger kitlog.Logger) http.Handler + func MakeSCEPEndpoint(svc Service) endpoint.Endpoint + type CSRSigner interface + SignCSR func(*scep.CSRReqMessage) (*x509.Certificate, error) + type CSRSignerFunc func(*scep.CSRReqMessage) (*x509.Certificate, error) + func ChallengeMiddleware(challenge string, next CSRSigner) CSRSignerFunc + func NopCSRSigner() CSRSignerFunc + func (f CSRSignerFunc) SignCSR(m *scep.CSRReqMessage) (*x509.Certificate, error) + type Endpoints struct + GetEndpoint endpoint.Endpoint + PostEndpoint endpoint.Endpoint + func MakeClientEndpoints(instance string) (*Endpoints, error) + func MakeServerEndpoints(svc Service) *Endpoints + func (e *Endpoints) GetCACaps(ctx context.Context) ([]byte, error) + func (e *Endpoints) GetCACert(ctx context.Context, message string) ([]byte, int, error) + func (e *Endpoints) GetNextCACert(ctx context.Context) ([]byte, error) + func (e *Endpoints) PKIOperation(ctx context.Context, msg []byte) ([]byte, error) + func (e *Endpoints) Supports(cap string) bool + type SCEPRequest struct + Message []byte + Operation string + type SCEPResponse struct + CACertNum int + Data []byte + Err error + type Service interface + GetCACaps func(ctx context.Context) ([]byte, error) + GetCACert func(ctx context.Context, message string) ([]byte, int, error) + GetNextCACert func(ctx context.Context) ([]byte, error) + PKIOperation func(ctx context.Context, msg []byte) ([]byte, error) + func NewLoggingService(logger log.Logger, s Service) Service + func NewService(crt *x509.Certificate, key *rsa.PrivateKey, signer CSRSigner, ...) (Service, error) + type ServiceOption func(*service) error + func WithAddlCA(ca *x509.Certificate) ServiceOption + func WithLogger(logger log.Logger) ServiceOption