getLocalRootCertificate
suspend fun getLocalRootCertificate(serverIdentity: ServerIdentity, createOnRequest: Boolean): X509Cert
Reads CA/root certificate for the given server identity type issued locally on this server.
Return
root certificate for the requested identity
Parameters
serverIdentity
type of the server identity to read.
createOnRequest
when true, if an identity is not found in the configuration and in the database, it is generated (and stored in the database for future use).
Throws
if createOnRequest is false and requested identity does not exist in either configuration or database.