enroll

suspend fun enroll(call: ApplicationCall)

Handles enrollment request from another server.

Enrollment request should be a POST request with JSON body in the following format:

{
"url": "https://requesting.server.host/server/path",
"request_id": "randomly-selected-id",
"identity": server-identity
}

Where server-identity is one of the ServerIdentity names.

This server then "enrolls" the requesting server by creating a requested certificate through Enrollment interface.

See also enrollServer.