ClientCAPool returns a CertPool containing only this CA's certificate, suitable for use as tls.Config.ClientCAs on the gRPC server.
()
| 245 | // ClientCAPool returns a CertPool containing only this CA's certificate, |
| 246 | // suitable for use as tls.Config.ClientCAs on the gRPC server. |
| 247 | func (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. |
no outgoing calls