Security
Generate an RSA key pair (2048/3072/4096-bit) as PEM-encoded public and private keys. Optionally encrypt the private key with a passphrase. PKCS#8 (recommended) or PKCS#1 private key format. Everything runs locally.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/rsa-key-generator' \
-H 'Content-Type: application/json' \
-d '{"bits":"2048","format":"pkcs8","passphrase":""}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/rsa-key-generator| Name | Type | Required | Description |
|---|---|---|---|
| bits | select | No | — |
| format | select | No | — |
| passphrase | text | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-rsa-key-generator": {
"name": "rsa-key-generator",
"description": "Generate an RSA key pair (2048/3072/4096-bit) as PEM-encoded public and private keys. Optionally encrypt the private key with a passphrase. PKCS#8 (recommended) or PKCS#1 private key format. Everything runs locally.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=rsa-key-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "rsa-key-generator",
"arguments": {
"bits": "2048",
"format": "pkcs8",
"passphrase": ""
}
}
}Questions or issues? Contact [email protected]