Skip to main content
POST
Import a certificate

Authorizations

Authorization
string
header
required

Project API access key.

Aptranet-Secret
string
header
required

Current secret for the access key.

Body

application/json
name
string
required

Unique project name; at most 64 UTF-8 bytes, without control characters.

Maximum string length: 64
certificate
string
required

PEM certificate chain, at most 256 KiB.

private_key
string
required
write-only

Matching unencrypted PEM private key, at most 64 KiB. Never log this value.

validate_root_ca
boolean
default:false

Response

Successful response.

id
integer
required
Required range: x >= 1
name
string
required
type
enum<string>
required
Available options:
managed,
advanced_managed,
imported
read_only
boolean
required
status
enum<string>
required
Available options:
active,
expired,
pending
domains
string[]
required
valid_until
string<date-time>
required
provisioning
boolean
required
type_label
string
issuer
string
serial_number
string
fingerprint_sha256
string
subject_cn
string
created_at
string<date-time>
not_before
string<date-time>
issuing
object