MCPcopy
hub / github.com/smallstep/cli / CaClient

Interface CaClient

utils/cautils/client.go:29–48  ·  view source on GitHub ↗

CaClient is the interface implemented by a client used to sign, renew, revoke certificates among other things.

Source from the content-addressed store, hash-verified

27// CaClient is the interface implemented by a client used to sign, renew, revoke
28// certificates among other things.
29type CaClient interface {
30 Sign(req *api.SignRequest) (*api.SignResponse, error)
31 Renew(tr http.RoundTripper) (*api.SignResponse, error)
32 RenewWithToken(ott string) (*api.SignResponse, error)
33 Revoke(req *api.RevokeRequest, tr http.RoundTripper) (*api.RevokeResponse, error)
34 Rekey(req *api.RekeyRequest, tr http.RoundTripper) (*api.SignResponse, error)
35 SSHSign(req *api.SSHSignRequest) (*api.SSHSignResponse, error)
36 SSHRenew(req *api.SSHRenewRequest) (*api.SSHRenewResponse, error)
37 SSHRekey(req *api.SSHRekeyRequest) (*api.SSHRekeyResponse, error)
38 SSHRevoke(req *api.SSHRevokeRequest) (*api.SSHRevokeResponse, error)
39 SSHRoots() (*api.SSHRootsResponse, error)
40 SSHFederation() (*api.SSHRootsResponse, error)
41 SSHConfig(req *api.SSHConfigRequest) (*api.SSHConfigResponse, error)
42 SSHCheckHost(principal string, token string) (*api.SSHCheckPrincipalResponse, error)
43 SSHGetHosts() (*api.SSHGetHostsResponse, error)
44 SSHBastion(req *api.SSHBastionRequest) (*api.SSHBastionResponse, error)
45 Version() (*api.VersionResponse, error)
46 GetRootCAs() *x509.CertPool
47 GetCaURL() string
48}
49
50// NewClient returns a client of an online or offline CA. Requires the flags
51// `offline`, `ca-config`, `ca-url`, and `root`.

Callers 45

SignMethod · 0.65
NewAdminClientFunction · 0.65
doDeviceAttestationFunction · 0.65
signActionFunction · 0.65
signSignActionFunction · 0.65
signActionFunction · 0.65
mustNebulaCurve25519CAFunction · 0.65
RenewMethod · 0.65
RenewWithTokenMethod · 0.65
renewCertificateActionFunction · 0.65
RenewMethod · 0.65

Implementers 1

OfflineCAutils/cautils/offline.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…