Create Self-Signed Certificate
create_self_signed_certificateGenerate a self-signed X.509 certificate by providing a private key, public key, and subject DN. Supports custom hash algorithm, validity period, key usages, and encoding.
Instructions
Create a self-signed X.509 certificate 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_self_signed_certificate"
}
}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 |
| validityDays | No | Certificate validity period in days. | |
| keyUsages | No | ||
| encoding | No | Output encoding for DER or value bytes. | hex |