MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / ClientCAPool

Method ClientCAPool

internal/cert/ca.go:247–251  ·  view source on GitHub ↗

ClientCAPool returns a CertPool containing only this CA's certificate, suitable for use as tls.Config.ClientCAs on the gRPC server.

()

Source from the content-addressed store, hash-verified

245// ClientCAPool returns a CertPool containing only this CA's certificate,
246// suitable for use as tls.Config.ClientCAs on the gRPC server.
247func (ca *NodeCA) ClientCAPool() *x509.CertPool {
248 pool := x509.NewCertPool()
249 pool.AddCert(ca.cert)
250 return pool
251}
252
253// IssueServerCert issues a TLS server certificate signed by this CA, using a
254// freshly generated RSA-2048 key pair owned by the returned tls.Certificate.

Callers 5

startMTLSHubFunction · 0.80
startNodeHubFunction · 0.80
TestEnrollSuccessFunction · 0.80

Calls

no outgoing calls

Tested by 4

startMTLSHubFunction · 0.64
TestEnrollSuccessFunction · 0.64