Versions in this module Expand all Collapse all v1 v1.0.0 Aug 18, 2020 Changes in this version + func PEMtox509(bytes []byte) (*x509.Certificate, error) + type Client struct + func NewClient(c *grpc.ClientConn) *Client + func (c *Client) CanGenerateCSR(ctx context.Context) (bool, error) + func (c *Client) GetCertificates(ctx context.Context) (map[string]*x509.Certificate, error) + func (c *Client) Install(ctx context.Context, certID string, minKeySize uint32, params pkix.Name, ...) error + func (c *Client) RevokeCertificates(ctx context.Context, certIDs []string) (map[string]string, error) + func (c *Client) Rotate(ctx context.Context, certID string, minKeySize uint32, params pkix.Name, ...) error + type Info struct + type Manager struct + func NewManager(privateKey crypto.PrivateKey) *Manager + func (cm *Manager) GenCSR(subject pkix.Name) ([]byte, error) + func (cm *Manager) GetCertInfo() ([]*Info, error) + func (cm *Manager) Install(certID string, pemCert []byte, pemCACerts [][]byte) error + func (cm *Manager) RegisterNotifier(f Notifier) + func (cm *Manager) Revoke(revoke []string) ([]string, map[string]string, error) + func (cm *Manager) Rotate(certID string, pemCert []byte, pemCACerts [][]byte) (func(), func(), error) + func (cm *Manager) TLSCertificates() ([]tls.Certificate, *x509.CertPool) + type ManagerInterface interface + GenCSR func(pkix.Name) ([]byte, error) + GetCertInfo func() ([]*Info, error) + Install func(string, []byte, [][]byte) error + Revoke func([]string) ([]string, map[string]string, error) + Rotate func(string, []byte, [][]byte) (func(), func(), error) + type Notifier func(int, int) + type Server struct + func NewServer(manager ManagerInterface) *Server + func (s *Server) CanGenerateCSR(ctx context.Context, request *pb.CanGenerateCSRRequest) (*pb.CanGenerateCSRResponse, error) + func (s *Server) GetCertificates(ctx context.Context, request *pb.GetCertificatesRequest) (*pb.GetCertificatesResponse, error) + func (s *Server) Install(stream pb.CertificateManagement_InstallServer) error + func (s *Server) Register(g *grpc.Server) + func (s *Server) RevokeCertificates(ctx context.Context, request *pb.RevokeCertificatesRequest) (*pb.RevokeCertificatesResponse, error) + func (s *Server) Rotate(stream pb.CertificateManagement_RotateServer) error