crypto_certificatekeypairs_generate_create
POST/crypto/certificatekeypairs/generate/
Generate a new, self-signed certificate-key pair
Request
- application/json
Body
required
common_name stringrequired
Possible values: non-empty
subject_alt_name string
validity_days integerrequired
alg AlgEnum (string)
Possible values: [rsa
, ecdsa
]
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pk uuidrequired
name stringrequired
fingerprint_sha256 stringnullablerequired
Get certificate Hash (SHA256)
fingerprint_sha1 stringnullablerequired
Get certificate Hash (SHA1)
cert_expiry date-timenullablerequired
Get certificate expiry
cert_subject stringnullablerequired
Get certificate subject as full rfc4514
private_key_available booleanrequired
Show if this keypair has a private key configured or not
private_key_type stringnullablerequired
Get the private key's type, if set
certificate_download_url stringrequired
Get URL to download certificate
private_key_download_url stringrequired
Get URL to download private key
managed Managed by authentik (string)nullablerequired
Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"fingerprint_sha256": "string",
"fingerprint_sha1": "string",
"cert_expiry": "2024-09-27T14:26:18.140Z",
"cert_subject": "string",
"private_key_available": true,
"private_key_type": "string",
"certificate_download_url": "string",
"private_key_download_url": "string",
"managed": "string"
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...