RootKey returns the CA's root private key. Since the root key is not cached in memory long-term, it needs to be loaded from storage, which could yield an error.
()
| 193 | // not cached in memory long-term, it needs to be loaded from storage, |
| 194 | // which could yield an error. |
| 195 | func (ca CA) RootKey() (crypto.Signer, error) { |
| 196 | _, rootKey, err := ca.loadOrGenRoot() |
| 197 | return rootKey, err |
| 198 | } |
| 199 | |
| 200 | // IntermediateCertificateChain returns the CA's intermediate |
| 201 | // certificate chain. |
no test coverage detected