Documentation ¶
Index ¶
- func GenerateCertificateFromCSR(crt, key, csr []byte) (signed *x509.Certificate, err error)
- type Registrator
- func (r *Registrator) Certificate(ctx context.Context, in *proto.CertificateRequest) (resp *proto.CertificateResponse, err error)
- func (r *Registrator) Register(s *grpc.Server)
- func (r *Registrator) WriteFile(ctx context.Context, in *proto.WriteFileRequest) (resp *proto.WriteFileResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificateFromCSR ¶
func GenerateCertificateFromCSR(crt, key, csr []byte) (signed *x509.Certificate, err error)
GenerateCertificateFromCSR creates a signed certificate using the provided certificate, key, and CSR.
Types ¶
type Registrator ¶
type Registrator struct {
Data *userdata.OSSecurity
}
Registrator is the concrete type that implements the factory.Registrator and proto.TrustdServer interfaces.
func (*Registrator) Certificate ¶
func (r *Registrator) Certificate(ctx context.Context, in *proto.CertificateRequest) (resp *proto.CertificateResponse, err error)
Certificate implements the proto.TrustdServer interface.
func (*Registrator) Register ¶
func (r *Registrator) Register(s *grpc.Server)
Register implements the factory.Registrator interface.
func (*Registrator) WriteFile ¶
func (r *Registrator) WriteFile(ctx context.Context, in *proto.WriteFileRequest) (resp *proto.WriteFileResponse, err error)
WriteFile implements the proto.TrustdServer interface.
Click to show internal directories.
Click to hide internal directories.