Documentation ¶
Index ¶
- func DecodePKCS7CertsOnly(b []byte) ([]*x509.Certificate, error)
- func ProcessAllParts(mpr *multipart.Reader) ([]*x509.Certificate, []byte, error)
- func ReadAllBase64Response(r io.Reader) ([]byte, error)
- func ReadCertResponse(r io.Reader) ([]*x509.Certificate, error)
- type BaseClient
- type ClientConfig
- type LamassuEstClient
- type LamassuEstClientConfig
- func (c *LamassuEstClientConfig) CACerts(ctx context.Context) ([]*x509.Certificate, error)
- func (c *LamassuEstClientConfig) Enroll(ctx context.Context, aps string, csr *x509.CertificateRequest) (*x509.Certificate, error)
- func (c *LamassuEstClientConfig) Reenroll(ctx context.Context, csr *x509.CertificateRequest) (*x509.Certificate, error)
- func (c *LamassuEstClientConfig) ServerKeyGen(ctx context.Context, aps string, csr *x509.CertificateRequest) (*x509.Certificate, []byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePKCS7CertsOnly ¶
func DecodePKCS7CertsOnly(b []byte) ([]*x509.Certificate, error)
func ProcessAllParts ¶
func ReadCertResponse ¶
func ReadCertResponse(r io.Reader) ([]*x509.Certificate, error)
Types ¶
type BaseClient ¶
type BaseClient interface { NewRequest(method string, endpoint string, serverAddr string, aps string, contentType, transferEncoding string, accepts string, body io.Reader) (*http.Request, error) Do(req *http.Request) (*http.Response, []byte, error) }
func NewBaseClient ¶
func NewBaseClient(url *url.URL, httpClient *http.Client) BaseClient
type LamassuEstClient ¶
type LamassuEstClient interface { CACerts(ctx context.Context) ([]*x509.Certificate, error) Enroll(ctx context.Context, aps string, csr *x509.CertificateRequest) (*x509.Certificate, error) Reenroll(ctx context.Context, csr *x509.CertificateRequest) (*x509.Certificate, error) ServerKeyGen(ctx context.Context, aps string, csr *x509.CertificateRequest) (*x509.Certificate, []byte, error) }
func NewLamassuEstClient ¶
func NewLamassuEstClient(estServerAddress string, serverCertPool *x509.CertPool, clientCert *x509.Certificate, clientKey []byte, logger log.Logger) (LamassuEstClient, error)
type LamassuEstClientConfig ¶
type LamassuEstClientConfig struct { Client BaseClient EstServerAddress string EstServerCaCertificate *x509.CertPool EstClientCertificate *x509.Certificate EstClientKey interface{} // contains filtered or unexported fields }
func (*LamassuEstClientConfig) CACerts ¶
func (c *LamassuEstClientConfig) CACerts(ctx context.Context) ([]*x509.Certificate, error)
func (*LamassuEstClientConfig) Enroll ¶
func (c *LamassuEstClientConfig) Enroll(ctx context.Context, aps string, csr *x509.CertificateRequest) (*x509.Certificate, error)
func (*LamassuEstClientConfig) Reenroll ¶
func (c *LamassuEstClientConfig) Reenroll(ctx context.Context, csr *x509.CertificateRequest) (*x509.Certificate, error)
func (*LamassuEstClientConfig) ServerKeyGen ¶
func (c *LamassuEstClientConfig) ServerKeyGen(ctx context.Context, aps string, csr *x509.CertificateRequest) (*x509.Certificate, []byte, error)
Click to show internal directories.
Click to hide internal directories.