enrollServer

suspend fun enrollServer(url: String, serverIdentity: ServerIdentity, requestId: String? = null)

"Enrolls" a server by creating a certificate of the requested type for its private key using Enrollment interface.

Only create certificates for servers with urls that match "ca_allow_enrollment" list.

Parameters

url

url of the server to enroll

serverIdentity

identity to provide

requestId

must be non-null if the request to enroll came from the server being enrolled; this allows enrolling server to ensure that it is not being force-enrolled by a malicious third party.