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.
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 |