Generates an RSA public-private key pair for client registration. The public key is used during the client registration process, while the private key should be securely stored on the client side.
Endpoint
GET /isw/auth/generateKeys
Authentication
No authentication required.
Response
Returns a map containing the generated key pair.
The RSA public key in string format
The RSA private key in string format. Must be securely stored by the client
Example request
curl --request GET \
--url http://localhost:8081/isw/auth/generateKeys
Example response
{
"publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
"privateKey": "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQD..."
}