OPNexusdocs

API: certificates

GET /api/certificates/managed#

List Managed Certificates

Permission certificates.read (look)

Response 200 ManagedCertificateRead[]

Show 24 fields
FieldTypeNotes
action *"import" | "internal" | "external" | "sign_csr" | "import_csr" | "reissue" | "manual"
carefstring | null
cert_type"usr_cert" | "server_cert" | "combined_server_client" default: "server_cert"
citystring default: "" · maxLength 255
commonnamestring default: "" · maxLength 255
countrystring default: "DE" · maxLength 8
created_at *string (date-time)
crt_payloadstring | null
csr_payloadstring | null
deployed_at *string (date-time) | null
description *stringminLength 1, maxLength 255
digest"sha1" | "sha224" | "sha256" | "sha384" | "sha512" default: "sha256"
emailstring default: "" · maxLength 255
host_id *string (uuid)
id *string (uuid)
key_type"2048" | "3072" | "4096" | "prime256v1" | "secp384r1" | "secp521r1" default: "2048"
lifetimeinteger default: 397 · minimum 1, maximum 36500
message *string | null
opnsense_uuid *string | null
organizationstring default: "" · maxLength 255
private_key_set *boolean
statestring default: "" · maxLength 255
status *"draft" | "success" | "error"
updated_at *string (date-time)

POST /api/certificates/managed#

Create Managed Certificate

Permission certificates.write (prepare)

Request body ManagedCertificateCreate

Show 17 fields
FieldTypeNotes
action *"import" | "internal" | "external" | "sign_csr" | "import_csr" | "reissue" | "manual"
carefstring | null
cert_type"usr_cert" | "server_cert" | "combined_server_client" default: "server_cert"
citystring default: "" · maxLength 255
commonnamestring default: "" · maxLength 255
countrystring default: "DE" · maxLength 8
crt_payloadstring | null
csr_payloadstring | null
description *stringminLength 1, maxLength 255
digest"sha1" | "sha224" | "sha256" | "sha384" | "sha512" default: "sha256"
emailstring default: "" · maxLength 255
host_id *string (uuid)
key_type"2048" | "3072" | "4096" | "prime256v1" | "secp384r1" | "secp521r1" default: "2048"
lifetimeinteger default: 397 · minimum 1, maximum 36500
organizationstring default: "" · maxLength 255
private_keystring | null
statestring default: "" · maxLength 255

Response 201 ManagedCertificateRead

Show 24 fields
FieldTypeNotes
action *"import" | "internal" | "external" | "sign_csr" | "import_csr" | "reissue" | "manual"
carefstring | null
cert_type"usr_cert" | "server_cert" | "combined_server_client" default: "server_cert"
citystring default: "" · maxLength 255
commonnamestring default: "" · maxLength 255
countrystring default: "DE" · maxLength 8
created_at *string (date-time)
crt_payloadstring | null
csr_payloadstring | null
deployed_at *string (date-time) | null
description *stringminLength 1, maxLength 255
digest"sha1" | "sha224" | "sha256" | "sha384" | "sha512" default: "sha256"
emailstring default: "" · maxLength 255
host_id *string (uuid)
id *string (uuid)
key_type"2048" | "3072" | "4096" | "prime256v1" | "secp384r1" | "secp521r1" default: "2048"
lifetimeinteger default: 397 · minimum 1, maximum 36500
message *string | null
opnsense_uuid *string | null
organizationstring default: "" · maxLength 255
private_key_set *boolean
statestring default: "" · maxLength 255
status *"draft" | "success" | "error"
updated_at *string (date-time)

PUT /api/certificates/managed/{cert_id}#

Edit Managed Certificate

Permission certificates.write (prepare)

Parameters

cert_id *pathstring (uuid)

Request body ManagedCertificateEdit

Show 18 fields
FieldTypeNotes
action *"import" | "internal" | "external" | "sign_csr" | "import_csr" | "reissue" | "manual"
carefstring | null
cert_type"usr_cert" | "server_cert" | "combined_server_client" default: "server_cert"
citystring default: "" · maxLength 255
commonnamestring default: "" · maxLength 255
countrystring default: "DE" · maxLength 8
crt_payloadstring | null
csr_payloadstring | null
description *stringminLength 1, maxLength 255
digest"sha1" | "sha224" | "sha256" | "sha384" | "sha512" default: "sha256"
emailstring default: "" · maxLength 255
expected_updated_at *string (date-time)
host_id *string (uuid)
key_type"2048" | "3072" | "4096" | "prime256v1" | "secp384r1" | "secp521r1" default: "2048"
lifetimeinteger default: 397 · minimum 1, maximum 36500
organizationstring default: "" · maxLength 255
private_keystring | null
statestring default: "" · maxLength 255

Response 200 ManagedCertificateRead

Show 24 fields
FieldTypeNotes
action *"import" | "internal" | "external" | "sign_csr" | "import_csr" | "reissue" | "manual"
carefstring | null
cert_type"usr_cert" | "server_cert" | "combined_server_client" default: "server_cert"
citystring default: "" · maxLength 255
commonnamestring default: "" · maxLength 255
countrystring default: "DE" · maxLength 8
created_at *string (date-time)
crt_payloadstring | null
csr_payloadstring | null
deployed_at *string (date-time) | null
description *stringminLength 1, maxLength 255
digest"sha1" | "sha224" | "sha256" | "sha384" | "sha512" default: "sha256"
emailstring default: "" · maxLength 255
host_id *string (uuid)
id *string (uuid)
key_type"2048" | "3072" | "4096" | "prime256v1" | "secp384r1" | "secp521r1" default: "2048"
lifetimeinteger default: 397 · minimum 1, maximum 36500
message *string | null
opnsense_uuid *string | null
organizationstring default: "" · maxLength 255
private_key_set *boolean
statestring default: "" · maxLength 255
status *"draft" | "success" | "error"
updated_at *string (date-time)

DELETE /api/certificates/managed/{cert_id}#

Delete Managed Certificate

Permission certificates.deploy (roll out)

Parameters

cert_id *pathstring (uuid)

Response 204

POST /api/certificates/managed/{cert_id}/push#

Push Managed Certificate

Permission certificates.deploy (roll out)

Parameters

cert_id *pathstring (uuid)

Response 200 ManagedCertificateRead

Show 24 fields
FieldTypeNotes
action *"import" | "internal" | "external" | "sign_csr" | "import_csr" | "reissue" | "manual"
carefstring | null
cert_type"usr_cert" | "server_cert" | "combined_server_client" default: "server_cert"
citystring default: "" · maxLength 255
commonnamestring default: "" · maxLength 255
countrystring default: "DE" · maxLength 8
created_at *string (date-time)
crt_payloadstring | null
csr_payloadstring | null
deployed_at *string (date-time) | null
description *stringminLength 1, maxLength 255
digest"sha1" | "sha224" | "sha256" | "sha384" | "sha512" default: "sha256"
emailstring default: "" · maxLength 255
host_id *string (uuid)
id *string (uuid)
key_type"2048" | "3072" | "4096" | "prime256v1" | "secp384r1" | "secp521r1" default: "2048"
lifetimeinteger default: 397 · minimum 1, maximum 36500
message *string | null
opnsense_uuid *string | null
organizationstring default: "" · maxLength 255
private_key_set *boolean
statestring default: "" · maxLength 255
status *"draft" | "success" | "error"
updated_at *string (date-time)