generate_certificate
Create a new server or user certificate signed by an existing pfSense Certificate Authority, specifying key type, length, digest, and validity period.
Instructions
Generate a new certificate signed by an existing CA on pfSense
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": {
"descr": "<descr>",
"caref": "<caref>",
"dn_commonname": "<dn_commonname>"
},
"name": "generate_certificate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Certificate type — "server" or "user" | server |
| caref | Yes | Reference ID of the signing Certificate Authority | |
| descr | Yes | Descriptive name for the certificate | |
| ecname | No | Elliptic curve name for ECDSA (e.g., "prime256v1", "secp384r1") | prime256v1 |
| keylen | No | Key length in bits (2048, 4096 for RSA) | |
| keytype | No | Key type — "RSA" or "ECDSA" | RSA |
| lifetime | No | Certificate lifetime in days (default: 3650 = ~10 years) | |
| digest_alg | No | Digest algorithm — sha256, sha384, sha512 | sha256 |
| dn_commonname | Yes | Common Name for the certificate (e.g., "vpn.example.com") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||