generate_certificate
Generate a certificate signed by an existing CA on pfSense. Configure the common name, key type, lifetime, and digest algorithm.
Instructions
Generate a new certificate signed by an existing CA on pfSense
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 | |||