Create CSR
create_csrCraft a PKCS#10 certificate signing request from a private key, public key, and subject DN.
Instructions
Create a PKCS#10 certificate signing request from a PKCS#8 private key, SPKI public key, and subject DN.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"privateKey": "<privateKey>",
"publicKey": "<publicKey>",
"subjectDn": "<subjectDn>"
},
"name": "create_csr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| privateKey | Yes | PKCS#8 private key as DER, PEM, HEX, or base64 text. | |
| privateKeyFormat | No | Input format. Defaults to auto detection. | |
| publicKey | Yes | SPKI public key as DER, PEM, HEX, or base64 text. | |
| publicKeyFormat | No | Input format. Defaults to auto detection. | |
| subjectDn | Yes | Subject DN, for example CN=example.com, O=Example, C=JP. | |
| hashAlgorithm | No | Hash algorithm for signing. | SHA-256 |
| encoding | No | Output encoding for DER or value bytes. | hex |