RootCertificate returns the CA's root certificate (public key).
()
| 184 | |
| 185 | // RootCertificate returns the CA's root certificate (public key). |
| 186 | func (ca CA) RootCertificate() *x509.Certificate { |
| 187 | ca.mu.RLock() |
| 188 | defer ca.mu.RUnlock() |
| 189 | return ca.root |
| 190 | } |
| 191 | |
| 192 | // RootKey returns the CA's root private key. Since the root key is |
| 193 | // not cached in memory long-term, it needs to be loaded from storage, |
no outgoing calls
no test coverage detected