Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAuthorityServer ¶
type CertificateAuthorityServer struct { pb.UnimplementedCertificateAuthorityServer // contains filtered or unexported fields }
CertificateAuthorityServer handles incoming requests.
func NewCertificateAuthorityServer ¶
func NewCertificateAuthorityServer(cfg Config, ownerClaim string, signerConfig SignerConfig, logger log.Logger) (*CertificateAuthorityServer, error)
func (*CertificateAuthorityServer) SignCertificate ¶
func (s *CertificateAuthorityServer) SignCertificate(ctx context.Context, req *pb.SignCertificateRequest) (*pb.SignCertificateResponse, error)
func (*CertificateAuthorityServer) SignIdentityCertificate ¶
func (s *CertificateAuthorityServer) SignIdentityCertificate(ctx context.Context, req *pb.SignCertificateRequest) (*pb.SignCertificateResponse, error)
type CertificateSigner ¶
type SignerConfig ¶
type SignerConfig struct { KeyFile string `yaml:"keyFile" json:"keyFile" description:"file name of CA private key in PEM format"` CertFile string `yaml:"certFile" json:"certFile" description:"file name of CA certificate in PEM format"` ValidFrom string `yaml:"validFrom" json:"validFrom" description:"format https://github.com/karrick/tparse"` ExpiresIn time.Duration `yaml:"expiresIn" json:"expiresIn"` HubID string `yaml:"hubID" json:"hubId"` }
func (*SignerConfig) Validate ¶
func (c *SignerConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.