caclient

package
v0.0.0-...-1832b01 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleCASClient

func NewGoogleCASClient(capool string, options ...option.ClientOption) (security.Client, error)

NewGoogleCASClient create a CA client for Google CAS.

Types

type GoogleCASClient

type GoogleCASClient struct {
	// contains filtered or unexported fields
}

GoogleCASClient: Agent side plugin for Google CAS

func (*GoogleCASClient) CSRSign

func (r *GoogleCASClient) CSRSign(csrPEM []byte, certValidTTLInSec int64) ([]string, error)

CSR Sign calls Google CAS to sign a CSR.

func (*GoogleCASClient) Close

func (r *GoogleCASClient) Close()

func (*GoogleCASClient) GetRootCertBundle

func (r *GoogleCASClient) GetRootCertBundle() ([]string, error)

GetRootCertBundle: Get CA certs of the pool from Google CAS API endpoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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