Keys and certificates#
From openapi.json: CrushMFT API, version v1, build 27.0.0_2143.
The SSL key stores and their keys, certificate requests and Let's Encrypt, the server's PGP key ring, the keys of file encryption, and Kerberos keytabs.
GET /WebInterface/api/v1/keys/ssl #
The key stores registered with the server: name, format, file, whether the API made it, where the server uses it, how many entries.
- Operation:
ssl.keystores.list - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.view - Tier:
2 - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit |
query | integer | At most this many items, 1 to 1000. Default 100. |
|
cursor |
query | string | The next_cursor of the page before. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
folder |
string | ||
items |
list of object | ||
items[].created |
string | ||
items[].entry_count |
integer | ||
items[].format |
string | ||
items[].managed |
boolean | ||
items[].name |
string | ||
items[].password |
object | ||
items[].password.set |
boolean | ||
items[].path |
string | ||
items[].used_by |
array | ||
next_cursor |
null |
Example 200 response
{
"items": [],
"next_cursor": null,
"folder": "/var/opt/CrushMFT27/keystores"
}
POST /WebInterface/api/v1/keys/ssl #
Make a key store in the server's key folder, with a password the server keeps and never answers; or adopt one at a path with its password (an administrator's own login).
- Operation:
ssl.keystores.create - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | The key store's name: 1 to 64 letters, digits, _ or -. |
format |
string, one of PKCS12, JKS |
PKCS12 (a .p12 file) when it is left out; a key store that is adopted is opened as either. | |
path |
string | Adopt the key store at this path on the server instead of making one. An administrator's own login only. | |
password |
string | The adopted key store's password. Needed with path; a key store the API makes gets one from the server. | |
key_password |
string | The password of the adopted key store's private keys, when it differs from the store's. |
Example request body
{
"name": "apigate1"
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
created |
string | ||
entries |
list of object | ||
entries[].alias |
string | ||
entries[].certificate |
object | ||
entries[].certificate.issuer |
string | ||
entries[].certificate.key_algorithm |
string | ||
entries[].certificate.key_size |
integer | ||
entries[].certificate.not_after |
string | ||
entries[].certificate.not_before |
string | ||
entries[].certificate.sans |
array | ||
entries[].certificate.self_signed |
boolean | ||
entries[].certificate.serial |
string | ||
entries[].certificate.sha256 |
string | ||
entries[].certificate.signature_algorithm |
string | ||
entries[].certificate.subject |
string | ||
entries[].chain_length |
integer | ||
entries[].kind |
string | ||
format |
string | ||
managed |
boolean | ||
name |
string | ||
password |
object | ||
password.set |
boolean | ||
path |
string | ||
used_by |
array |
Example 201 response
{
"name": "apigate1",
"format": "PKCS12",
"managed": true,
"path": "/var/opt/CrushMFT27/keystores/apigate1.p12",
"created": "2026-11-22T19:29:52.172Z",
"password": {
"set": true
},
"used_by": [],
"entries": []
}
GET /WebInterface/api/v1/keys/ssl/{store} #
One key store and its entries: alias, private key or trusted certificate, subject, issuer, names, dates, fingerprint.
- Operation:
ssl.keystores.get - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.view - Tier:
2 - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
created |
string | ||
entries |
list of object | ||
entries[].alias |
string | ||
entries[].certificate |
object | ||
entries[].certificate.issuer |
string | ||
entries[].certificate.key_algorithm |
string | ||
entries[].certificate.key_size |
integer | ||
entries[].certificate.not_after |
string | ||
entries[].certificate.not_before |
string | ||
entries[].certificate.sans |
list of string | ||
entries[].certificate.self_signed |
boolean | ||
entries[].certificate.serial |
string | ||
entries[].certificate.sha256 |
string | ||
entries[].certificate.signature_algorithm |
string | ||
entries[].certificate.subject |
string | ||
entries[].chain_length |
integer | ||
entries[].kind |
string | ||
format |
string | ||
managed |
boolean | ||
name |
string | ||
password |
object | ||
password.set |
boolean | ||
path |
string | ||
used_by |
array |
Example 200 response
{
"name": "gatetools",
"format": "PKCS12",
"managed": true,
"path": "/var/opt/CrushMFT27/keystores/gatetools.p12",
"created": "2026-11-22T19:31:05.649Z",
"password": {
"set": true
},
"used_by": [],
"entries": [
{
"alias": "k1",
"kind": "private_key",
"chain_length": 1,
"certificate": {
"subject": "CN=tools.example.com",
"issuer": "CN=tools.example.com",
"serial": "6B0342F9",
"not_before": "2026-11-22T19:31:05Z",
"not_after": "2027-11-22T19:31:05Z",
"sans": [
"DNS:tools.example.com"
],
"key_algorithm": "RSA",
"key_size": 2048,
"signature_algorithm": "SHA256withRSA",
"self_signed": true,
"sha256": "8B:01:82:C6:53:BC:A8:F3:50:42:4D:52:20:B5:5A:C3:7F:DA:30:D6:7A:9C:08:79:F7:95:C2:9A:22:03:F6:D4"
}
}
]
}
DELETE /WebInterface/api/v1/keys/ssl/{store} #
Forget a key store; one the API made is deleted with its file. Refused while the server uses it.
- Operation:
ssl.keystores.delete - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
POST /WebInterface/api/v1/keys/ssl/{store}/use #
Make a key store the server's own (cert_path) or a listener's. Also needs prefs.keys.edit or prefs.listeners.edit.
- Operation:
ssl.keystores.use - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
listener |
integer | A listener's id, as GET /listeners gives it. Left out: the server's own key store. |
Example request body
{}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
created |
string | ||
entry_count |
integer | ||
format |
string | ||
managed |
boolean | ||
name |
string | ||
note |
string | ||
password |
object | ||
password.set |
boolean | ||
path |
string | ||
used_by |
list of string |
Example 200 response
{
"name": "apigate2",
"format": "PKCS12",
"managed": true,
"path": "/var/opt/CrushMFT27/keystores/apigate2.p12",
"created": "2026-11-22T19:29:52.799Z",
"password": {
"set": true
},
"used_by": [
"server"
],
"entry_count": 1,
"note": "A listener reads its key store when it starts (FTP over TLS at each AUTH): restart a running HTTPS listener with POST /listeners/{id}/restart."
}
POST /WebInterface/api/v1/keys/ssl/{store}/keys #
Add a PEM private key (RSA, EC, PKCS#8, encrypted with key_password) and its PEM certificate chain under an alias.
- Operation:
ssl.keys.add - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
replace |
query | boolean | Put the new key in place of an entry of the same alias. Default false. |
|
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | yes | The entry's alias. |
key |
string | yes | The private key in PEM: RSA, EC or PKCS#8, encrypted or not. |
key_password |
string | The password of an encrypted private key. | |
certificates |
string | yes | The key's certificate and the chain above it, in PEM, in any order. |
Example request body
{
"alias": "pemec",
"key": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIJA9WHsrpb0efKMiodKUq455t4hW8qfocejEa83gnNGkoAoGCCqGSM49\nAwEHoUQDQgAE6DjMlHQRJ3vskKMuznBwFoLxshfuvd18K+ylTSp2ax9lkupLPnfc\nBEqGU0DGDepvmomydqX1on0VcuoQw3Ricg==\n-----END EC PRIVATE KEY-----\n",
"certificates": "-----BEGIN CERTIFICATE-----\nMIIBdjCCARygAwIBAgIUd/k7Ihb9yZCyS2i9sUs9ecIj9dwwCgYIKoZIzj0EAwIw\nITEfMB0GA1UEAwwWcGVtZWMuZ2F0ZS5leGFtcGxlLmNvbTAeFw0yNjExMjIxOTI5\nNTJaFw0yNjEyMjIxOTI5NTJaMCExHzAdBgNVBAMMFnBlbWVjLmdhdGUuZXhhbXBs\nZS5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAToOMyUdBEne+yQoy7OcHAW\ngvGyF+693Xwr7KVNKnZrH2WS6ks+d9wESoZTQMYN6m+aibJ2pfWifRVy6hDDdGJy\nozIwMDAdBgNVHQ4EFgQUlPgMGNBsNyK9EPYVmy0pFlH3xGQwDwYDVR0TAQH/BAUw\nAwEB/zAKBggqhkjOPQQDAgNIADBFAiAY0Y23Ngyc3GPI0eDxgjgjkoJ6zehx/zGc\nm7e4R9T/VQIhAPCs3RIQ+k81iJpgoue7KEQs30PpwHRflkavlytZx6dv\n-----END CERTIFICATE-----\n"
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | ||
certificate |
object | ||
certificate.issuer |
string | ||
certificate.key_algorithm |
string | ||
certificate.key_size |
integer | ||
certificate.not_after |
string | ||
certificate.not_before |
string | ||
certificate.sans |
array | ||
certificate.self_signed |
boolean | ||
certificate.serial |
string | ||
certificate.sha256 |
string | ||
certificate.signature_algorithm |
string | ||
certificate.subject |
string | ||
chain_length |
integer | ||
kind |
string |
Example 201 response
{
"alias": "pemec",
"kind": "private_key",
"chain_length": 1,
"certificate": {
"subject": "CN=pemec.gate.example.com",
"issuer": "CN=pemec.gate.example.com",
"serial": "77F93B2216FDC990B24B68BDB14B3D79C223F5DC",
"not_before": "2026-11-22T19:29:52Z",
"not_after": "2026-12-22T19:29:52Z",
"sans": [],
"key_algorithm": "EC",
"key_size": 256,
"signature_algorithm": "SHA256withECDSA",
"self_signed": true,
"sha256": "A6:3E:FA:96:47:05:D2:F4:5B:F2:82:69:5D:8A:C9:77:7D:C9:E9:18:BD:AE:26:7F:46:F7:6D:F2:44:E9:72:71"
}
}
POST /WebInterface/api/v1/keys/ssl/{store}/trusted #
Add one PEM certificate as a trusted entry.
- Operation:
ssl.trusted.add - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.trust - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | yes | The entry's alias. |
certificate |
string | yes | One certificate in PEM. |
Example request body
{
"alias": "gateca",
"certificate": "-----BEGIN CERTIFICATE-----\nMIIC9jCCAd6gAwIBAgIURuxRFgendFTwiDLJHRPerKu/Fh4wDQYJKoZIhvcNAQEL\nBQAwGzEZMBcGA1UEAwwQQVBJIEdhdGUgVGVzdCBDQTAeFw0yNjExMjIxOTI5NTJa\nFw0yNjEyMjIxOTI5NTJaMBsxGTAXBgNVBAMMEEFQSSBHYXRlIFRlc3QgQ0EwggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCLhAwL1hpRI7jK3mQhb9lninI6\nfPgdAbQw3dZwt9id8dsv1Va79TEpa4UgqUsqXjiy4G4v+T9MW3wWimdbmuC9hEiW\nhe+4tMXU5JV35LGuvVD46yTcQ8pd2zkQPO6gC4JsYy/Zz6K7XdMF0dZTFcH7WTfV\niLMgezKhxSds+576YMDzCX5UZElcAboM13g5XGRuoOIqdDIrWFOWfENbCH1jWYyu\n3fxNyC9p8O7xGDQU7FCokyrLSPuqzY1VhO/FA+pf40IuOjiDAuRFLfz1HMp/nqxN\nUeJUxwR2WNeDbzaSlshjUacBcv4/yS5lh9xXt4NFnFq4X+qkq5RRrg1Lb+gTAgMB\nAAGjMjAwMB0GA1UdDgQWBBRtLTtrAJyhu93KV+B73aq/lpVW4TAPBgNVHRMBAf8E\nBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBYK8ZgIdfZHkUBUXl8rnnfhnFvaIfB\n4qUMZNXr0JoW3Ik2ndIam81ihQj4G7Ykbcx9cY/G3nUnOK6sxv79UKoSj4aC7ZmQ\nvEy8z6Pp4bc2zgrCr40/wEKIInmfnMm626/UDwo+nFiyOCxhD7ghqj4iblA4yqrn\ncq7Lthj06NzY9uRJizPn4jTYPOcrS868HZgDcbf9sirwYO+e/blLJISOImvImj18\nVc/XRvU6/tXEESEyTH+PYEmL3gyOVLwqo3X13JceUuC3FtNMXFNFuK7/3fNyNe..."
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | ||
certificate |
object | ||
certificate.issuer |
string | ||
certificate.key_algorithm |
string | ||
certificate.key_size |
integer | ||
certificate.not_after |
string | ||
certificate.not_before |
string | ||
certificate.sans |
array | ||
certificate.self_signed |
boolean | ||
certificate.serial |
string | ||
certificate.sha256 |
string | ||
certificate.signature_algorithm |
string | ||
certificate.subject |
string | ||
chain_length |
integer | ||
kind |
string |
Example 201 response
{
"alias": "gateca",
"kind": "trusted_certificate",
"chain_length": 1,
"certificate": {
"subject": "CN=API Gate Test CA",
"issuer": "CN=API Gate Test CA",
"serial": "46EC511607A77454F08832C91D13DEACABBF161E",
"not_before": "2026-11-22T19:29:52Z",
"not_after": "2026-12-22T19:29:52Z",
"sans": [],
"key_algorithm": "RSA",
"key_size": 2048,
"signature_algorithm": "SHA256withRSA",
"self_signed": true,
"sha256": "3C:53:E0:BE:C9:6C:78:8F:2F:AE:10:77:67:67:12:0B:14:3F:46:34:0D:66:C3:B7:C1:D7:1F:F4:6F:29:4D:F3"
}
}
POST /WebInterface/api/v1/keys/ssl/{store}/generate #
Make a new key pair (RSA or EC) with a self-signed certificate under an alias.
- Operation:
ssl.keys.generate - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | yes | The entry's alias. |
cn |
string | yes | The common name, such as files.example.com. |
sans |
array | Host names and IP addresses the certificate is for. The common name when left out. | |
o |
string | Organization. | |
ou |
string | Organizational unit. | |
l |
string | Locality. | |
st |
string | State or province. | |
c |
string | Two-letter country code. | |
email |
string | E-mail address. | |
key_type |
string, one of RSA, EC |
RSA or EC. Default RSA. |
|
key_size |
integer | RSA: 2048 (when left out), 3072 or 4096. EC: 256 (when left out) or 384. | |
days |
integer | How many days the certificate is good for, 1 to 3650. Default 365. |
Example request body
{
"alias": "k1",
"cn": "tools.example.com"
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | ||
certificate |
object | ||
certificate.issuer |
string | ||
certificate.key_algorithm |
string | ||
certificate.key_size |
integer | ||
certificate.not_after |
string | ||
certificate.not_before |
string | ||
certificate.sans |
list of string | ||
certificate.self_signed |
boolean | ||
certificate.serial |
string | ||
certificate.sha256 |
string | ||
certificate.signature_algorithm |
string | ||
certificate.subject |
string | ||
chain_length |
integer | ||
kind |
string |
Example 201 response
{
"alias": "k1",
"kind": "private_key",
"chain_length": 1,
"certificate": {
"subject": "CN=tools.example.com",
"issuer": "CN=tools.example.com",
"serial": "6B0342F9",
"not_before": "2026-11-22T19:31:05Z",
"not_after": "2027-11-22T19:31:05Z",
"sans": [
"DNS:tools.example.com"
],
"key_algorithm": "RSA",
"key_size": 2048,
"signature_algorithm": "SHA256withRSA",
"self_signed": true,
"sha256": "8B:01:82:C6:53:BC:A8:F3:50:42:4D:52:20:B5:5A:C3:7F:DA:30:D6:7A:9C:08:79:F7:95:C2:9A:22:03:F6:D4"
}
}
POST /WebInterface/api/v1/keys/ssl/{store}/keys/{alias}/csr #
A certificate signing request (PEM) for one private key entry, with its subject and names.
- Operation:
ssl.csr.create - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
alias |
path | string | yes | The entry's alias. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | ||
csr |
string | ||
subject |
string |
Example 200 response
{
"alias": "gen1",
"subject": "CN=gate.example.com,C=US,O=Gate Org",
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIICwDCCAagCAQAwOzERMA8GA1UECgwIR2F0ZSBPcmcxCzAJBgNVBAYTAlVTMRkw\nFwYDVQQDDBBnYXRlLmV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A\nMIIBCgKCAQEAvV319t2tdZY/P7J7ywJR/uLGrzMizRFDFHtDvtVe+b2UiPLJ9QeU\nwr5jkxKt1o0fRmX26jYwHTKPqJw6S7B0tpuRiVCo7KsqgBr95x5HeylUZdEW7GsK\njWckcv9YN+ai9z3u2rRnr0OgmRtzYhEJ+prmObpzriqk3+ec+p1ae7UwH9LBRt79\n6X3Xy0Dn6FZe/pbKX068JB1HRITk+9/Xjj8fpefGtP5WV84e2WAXmtiWMrlRVPfs\ngJvS0CE0LilnnrwUwjFBGT9xVdqaYLf/pXt1cn9ijddAzvttxo+XRJ861Lwndhbh\n/XXWASDgCOYq6ypemyYkIh0NSazPO8vJ6wIDAQABoEAwPgYJKoZIhvcNAQkOMTEw\nLzAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMC\nMA0GCSqGSIb3DQEBCwUAA4IBAQC4Xui/vEDN0dmecyp8CKGAAj8RsP/d5baQoRZn\nqtwciQgbLDL/4UA+3vgPyrbV0oxWsJWrRKRV23hAcwkG1OHIRGb+hQqbTPiBwBq/\n5nYlK75Ik+nsBg7C5GZPlJCzKpaI2Tx6lhTmy7U8e3HjttJJY8b262R6soSa+zQA\n2ufgl6t9y9nylv/b5nrsp9NmuO4IK6ECtbgfctPbdr31ZmxJ0SPhdiQvgYD6uqIU\nXV80JbSiXuBMyztEH9qK137p//ViEWqKZOXElj7max5LFkTCuWXuR0g8Cq4ldabt\nNOqrMLCUdhL6zXuf/ob2RseCkTWUKq7Y1tbbx2oQZsRAuy63\n-----..."
}
POST /WebInterface/api/v1/keys/ssl/{store}/keys/{alias}/reply #
Put the CA's signed certificate chain (PEM) on a private key entry.
- Operation:
ssl.reply.import - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
alias |
path | string | yes | The entry's alias. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
certificates |
string | yes | The signed certificate and the CA chain above it, in PEM, in any order. |
Example request body
{
"certificates": "-----BEGIN CERTIFICATE-----\nMIIC9jCCAd6gAwIBAgIURuxRFgendFTwiDLJHRPerKu/Fh4wDQYJKoZIhvcNAQEL\nBQAwGzEZMBcGA1UEAwwQQVBJIEdhdGUgVGVzdCBDQTAeFw0yNjExMjIxOTI5NTJa\nFw0yNjEyMjIxOTI5NTJaMBsxGTAXBgNVBAMMEEFQSSBHYXRlIFRlc3QgQ0EwggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCLhAwL1hpRI7jK3mQhb9lninI6\nfPgdAbQw3dZwt9id8dsv1Va79TEpa4UgqUsqXjiy4G4v+T9MW3wWimdbmuC9hEiW\nhe+4tMXU5JV35LGuvVD46yTcQ8pd2zkQPO6gC4JsYy/Zz6K7XdMF0dZTFcH7WTfV\niLMgezKhxSds+576YMDzCX5UZElcAboM13g5XGRuoOIqdDIrWFOWfENbCH1jWYyu\n3fxNyC9p8O7xGDQU7FCokyrLSPuqzY1VhO/FA+pf40IuOjiDAuRFLfz1HMp/nqxN\nUeJUxwR2WNeDbzaSlshjUacBcv4/yS5lh9xXt4NFnFq4X+qkq5RRrg1Lb+gTAgMB\nAAGjMjAwMB0GA1UdDgQWBBRtLTtrAJyhu93KV+B73aq/lpVW4TAPBgNVHRMBAf8E\nBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBYK8ZgIdfZHkUBUXl8rnnfhnFvaIfB\n4qUMZNXr0JoW3Ik2ndIam81ihQj4G7Ykbcx9cY/G3nUnOK6sxv79UKoSj4aC7ZmQ\nvEy8z6Pp4bc2zgrCr40/wEKIInmfnMm626/UDwo+nFiyOCxhD7ghqj4iblA4yqrn\ncq7Lthj06NzY9uRJizPn4jTYPOcrS868HZgDcbf9sirwYO+e/blLJISOImvImj18\nVc/XRvU6/tXEESEyTH+PYEmL3gyOVLwqo3X13JceUuC3FtNMXFNFuK7/3fNyNe..."
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | ||
certificate |
object | ||
certificate.issuer |
string | ||
certificate.key_algorithm |
string | ||
certificate.key_size |
integer | ||
certificate.not_after |
string | ||
certificate.not_before |
string | ||
certificate.sans |
array | ||
certificate.self_signed |
boolean | ||
certificate.serial |
string | ||
certificate.sha256 |
string | ||
certificate.signature_algorithm |
string | ||
certificate.subject |
string | ||
chain_length |
integer | ||
kind |
string |
Example 200 response
{
"alias": "gen1",
"kind": "private_key",
"chain_length": 2,
"certificate": {
"subject": "CN=gate.example.com,C=US,O=Gate Org",
"issuer": "CN=API Gate Test CA",
"serial": "66A5900B6CA2E915201F641613763FE75A1179A3",
"not_before": "2026-11-22T19:29:52Z",
"not_after": "2026-12-22T19:29:52Z",
"sans": [],
"key_algorithm": "RSA",
"key_size": 2048,
"signature_algorithm": "SHA256withRSA",
"self_signed": false,
"sha256": "1E:36:50:F3:64:B2:F1:53:2D:82:61:C6:0E:42:B0:5D:7E:24:FC:24:DB:77:9E:30:E4:21:28:F8:03:93:D3:67"
}
}
POST /WebInterface/api/v1/keys/ssl/{store}/keys/{alias}/rename #
Give an entry another alias.
- Operation:
ssl.rename - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
alias |
path | string | yes | The entry's alias. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
new_alias |
string | yes | The new alias. |
Example request body
{
"new_alias": "genec2"
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | ||
certificate |
object | ||
certificate.issuer |
string | ||
certificate.key_algorithm |
string | ||
certificate.key_size |
integer | ||
certificate.not_after |
string | ||
certificate.not_before |
string | ||
certificate.sans |
list of string | ||
certificate.self_signed |
boolean | ||
certificate.serial |
string | ||
certificate.sha256 |
string | ||
certificate.signature_algorithm |
string | ||
certificate.subject |
string | ||
chain_length |
integer | ||
kind |
string |
Example 200 response
{
"alias": "genec2",
"kind": "private_key",
"chain_length": 1,
"certificate": {
"subject": "CN=ec.gate.example.com",
"issuer": "CN=ec.gate.example.com",
"serial": "6B0342B0",
"not_before": "2026-11-22T19:29:52Z",
"not_after": "2027-11-22T19:29:52Z",
"sans": [
"DNS:ec.gate.example.com"
],
"key_algorithm": "EC",
"key_size": 256,
"signature_algorithm": "SHA256withECDSA",
"self_signed": true,
"sha256": "56:B9:5A:5B:46:F4:1E:46:4C:21:6C:8D:ED:90:84:43:C6:1C:54:8D:CE:1C:DD:D6:96:A7:36:1A:85:20:D8:0F"
}
}
DELETE /WebInterface/api/v1/keys/ssl/{store}/keys/{alias} #
Delete an entry.
- Operation:
ssl.delete - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.manage - Tier:
1 - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
alias |
path | string | yes | The entry's alias. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen. Default false. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/v1/keys/ssl/{store}/keys/{alias}/certificate #
An entry's certificate chain in PEM. A private key never leaves the server.
- Operation:
ssl.export - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.view - Tier:
2 - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
store |
path | string | yes | The key store's name, as the list gives it. |
alias |
path | string | yes | The entry's alias. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
alias |
string | ||
certificates |
string |
Example 200 response
{
"alias": "gen1",
"certificates": "-----BEGIN CERTIFICATE-----\nMIIDJjCCAg6gAwIBAgIUZqWQC2yi6RUgH2QWE3Y/51oReaMwDQYJKoZIhvcNAQEL\nBQAwGzEZMBcGA1UEAwwQQVBJIEdhdGUgVGVzdCBDQTAeFw0yNjExMjIxOTI5NTJa\nFw0yNjEyMjIxOTI5NTJaMDsxETAPBgNVBAoMCEdhdGUgT3JnMQswCQYDVQQGEwJV\nUzEZMBcGA1UEAwwQZ2F0ZS5leGFtcGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD\nggEPADCCAQoCggEBAL1d9fbdrXWWPz+ye8sCUf7ixq8zIs0RQxR7Q77VXvm9lIjy\nyfUHlMK+Y5MSrdaNH0Zl9uo2MB0yj6icOkuwdLabkYlQqOyrKoAa/eceR3spVGXR\nFuxrCo1nJHL/WDfmovc97tq0Z69DoJkbc2IRCfqa5jm6c64qpN/nnPqdWnu1MB/S\nwUbe/el918tA5+hWXv6Wyl9OvCQdR0SE5Pvf144/H6XnxrT+VlfOHtlgF5rYljK5\nUVT37ICb0tAhNC4pZ568FMIxQRk/cVXammC3/6V7dXJ/Yo3XQM77bcaPl0SfOtS8\nJ3YW4f111gEg4AjmKusqXpsmJCIdDUmszzvLyesCAwEAAaNCMEAwHQYDVR0OBBYE\nFAMHYBwczMcBtCKgGBoPX6KSx1AhMB8GA1UdIwQYMBaAFG0tO2sAnKG73cpX4Hvd\nqr+WlVbhMA0GCSqGSIb3DQEBCwUAA4IBAQBWqXe/pOMvYkp0Lg4dzFIOEORY/lTw\nP7jBLm0xgrGSNQ9lJXUntj2ZZhhJgHW1P5866oF/E3rwKfB/rOiXUee8ii2byZ7J\nhg2n3Zw3HWpfMGitfHKVjoAH/IVlBaUNyoQ/RO4tgcBIEavZkcUZ9MWwztX+Ri3i\n+9NnFtl9iXIuE8HsSxfwu+HZRG6LPsADq1gzeaPj+Dp28ftOlvO5ZOESJimXfq..."
}
POST /WebInterface/api/v1/keys/ssl-acme #
Order a certificate from Let's Encrypt through the LetsEncrypt plugin.
- Operation:
ssl.acme.run - Credentials:
tokenorbasicorsession - Permission:
keys.ssl.acme - Tier:
1 - Legacy:
letsencrypt - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Run every check, order nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
plugin_item |
string | The LetsEncrypt plugin's item, when it has several. | |
settings |
object | Settings the plugin reads for this order. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. Its fields are not described yet: no test run recorded this reply. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/v1/keystores #
The key stores loaded into the server's memory by name.
- Operation:
keystores.get - Credentials:
tokenorbasicorsession - Permission:
keys.keystore.view - Tier:
1 - Legacy:
loadKeyStores - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
list of vfs_item | ||
next_cursor |
null |
Example 200 response
{
"items": [
{
"name": "gatemem",
"type": "PKCS12",
"url": "{GATEMEM}"
}
],
"next_cursor": null
}
PUT /WebInterface/api/v1/keystores #
Load key stores into the server's memory from a url, by name, or drop them. Listeners and tasks name them as {NAME}.
- Operation:
keystores.save - Credentials:
tokenorbasicorsession - Permission:
keys.keystore.edit - Tier:
1 - Legacy:
saveKeyStores - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Run every check, change nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
items |
array | yes | Key stores: {name, url, type} to load, {name, remove: true} to drop. |
Example request body
{
"items": [
{
"name": "gatemem",
"remove": true
}
]
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
list of vfs_item | ||
next_cursor |
null |
Example 200 response
{
"items": [],
"next_cursor": null
}
GET /WebInterface/api/v1/keys/pgp #
The keys of the server's PGP key ring: id, name, fingerprint, ciphers, size, dates, whether it holds the private key. deleted=true adds the deleted keys.
- Operation:
pgp.list - Credentials:
tokenorbasicorsession - Permission:
keys.pgp.view - Tier:
2 - Legacy:
getPGP - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
deleted |
query | boolean | Add the deleted keys, marked deleted. Default false. |
|
limit |
query | integer | At most this many items, 1 to 1000. Default 100. |
|
cursor |
query | string | The next_cursor of the page before. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
list of object | ||
items[].ciphers |
list of string | ||
items[].created |
string | ||
items[].deleted |
boolean | ||
items[].expires |
string | ||
items[].fingerprint |
string | ||
items[].id |
string | ||
items[].name |
string | ||
items[].private |
boolean | ||
items[].size |
integer | ||
items[].user_id |
string | ||
next_cursor |
null |
Example 200 response
{
"items": [],
"next_cursor": null
}
POST /WebInterface/api/v1/keys/pgp #
Add a key to the server's key ring: an armored public key, or a private key with its password.
- Operation:
pgp.add - Credentials:
tokenorbasicorsession - Permission:
keys.pgp.manage - Tier:
1 - Legacy:
addPGP - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Run every check, change nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
key |
string | yes | The key, armored: -----BEGIN PGP PUBLIC KEY BLOCK----- or -----BEGIN PGP PRIVATE KEY BLOCK-----. |
key_password |
string | The password of a private key. Needed for one. | |
name |
string | The name to give the key in the key ring. |
Example request body
{
"key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: CrushFTP OpenPGP\n\nxsBNBGsDQq0BCACtSO2glKYXWVuO+ZvPy5UV5vwpiQ9tQtGkoJpyhbqE5zZySeR1\n424dlSeLzl5MNE6fIZQhCnqP6GSrDnuE/dgMCv/HraXGw0ir67q9RceTvLebjAQC\niP4DpOxUhd/Cu0hANU8A8r8zi3ZxvgEzd44P8th9SyhJaAh8x9QX+Q92zekthJyd\nAUDyV5sV8pnHjyoYPR1IvGRfX8opdoDpnH6i6LJNMK3TVt8MN4tTowJqKfALFt/A\n5CNYvARS/zye4x07tZuVjSRBkGVJYieUKE36PSy5/vItGUEx6kZ9u2W4kkScAYsq\nhFQ6GJN8fYDIivE4l7YzHm6E3c0I4vQjk5UhABEBAAHNH0FQSSBHYXRlIEtleSA8\nZ2F0ZUBleGFtcGxlLmNvbT7CwHsEEwEIACUFgmsDQq0FCQAnjQACGwMDCwkHBhUC\nCAkKAQQWAQIAAh4BAhkBAAoJELoGEJbEBlVuCx4IAJrghN94n4G9+lH9BXdVsse0\nYWqCT8wG2umM0AjoYBiCFXQtDhlqF3w6YdBmYhvNiRdOgsHuOH+yXn/c/dM6r7Q/\nF4b3mVWFp1LFE/vdPvmSWpWYZk8drjgRYxa0+IoQtnlGsgXVmlFrPGho6CS+ltMn\nI/IMOrMk1WNFZAeZOU0cYNOwsH9+2zZlv29OnVKPQ8TlYeum5ji2dnlRRDbn8wbU\nyCSIiAF/PWd9YgPeVDO93u+Cawatr7Ukv2e765ISnq1s0MJNpSChvKepWE9d45yv\niPUkwldEf4nYkTJmi2YRskxNDz2N1+/i0K6G40FN1hXoTSg39PNb7KmhMD2slhnO\nwE0EawNCrQEIAKZzr7TI3UPgTTo22e+o9GmL4oJPXC2wtmiagSd/y6ALWK+kEwlI\nkHu1oAINzc1ldwkumz98+SI+RT...",
"name": "API Gate Key Public"
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
added |
list of object | ||
added[].ciphers |
list of string | ||
added[].created |
string | ||
added[].deleted |
boolean | ||
added[].expires |
string | ||
added[].fingerprint |
string | ||
added[].id |
string | ||
added[].name |
string | ||
added[].private |
boolean | ||
added[].size |
integer | ||
added[].user_id |
string |
Example 201 response
{
"added": [
{
"id": "C406556E",
"name": "API Gate Key Public",
"user_id": "API Gate Key \u003cgate@example.com\u003e",
"fingerprint": "4808517e4c540201c87a2479ba061096c406556e",
"ciphers": [
"AES256",
"AES128"
],
"size": 2048,
"created": "2026-11-22T19:29:49Z",
"expires": "2026-12-22T19:29:49Z",
"private": false,
"deleted": false
}
]
}
POST /WebInterface/api/v1/keys/pgp-generate #
Make a new key pair in the server's key ring.
- Operation:
pgp.generate - Credentials:
tokenorbasicorsession - Permission:
keys.pgp.manage - Tier:
1 - Legacy:
addPGP - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Run every check, change nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | The new key's name, such as Partner Name partner@example.com. |
size |
integer | The key size: 2048, 3072 or 4096. Default 2048. |
|
days |
integer | How many days the key is good for, 1 to 18300. Default 365. |
|
ciphers |
array | The ciphers the key prefers, strongest first: AES256, AES192, AES128, TWOFISH, CAMELLIA256, CAMELLIA192, CAMELLIA128, CAST5, BLOWFISH. AES256, AES192, AES128 when left out. |
Example request body
{
"name": "Gate Tools \u003ctools@example.com\u003e"
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
added |
list of object | ||
added[].ciphers |
list of string | ||
added[].created |
string | ||
added[].deleted |
boolean | ||
added[].expires |
string | ||
added[].fingerprint |
string | ||
added[].id |
string | ||
added[].name |
string | ||
added[].private |
boolean | ||
added[].size |
integer | ||
added[].user_id |
string |
Example 201 response
{
"added": [
{
"id": "4189BA8D",
"name": "Gate Tools",
"user_id": "Gate Tools \u003ctools@example.com\u003e",
"fingerprint": "1ab83d178b6c7b6437287c8ac93656194189ba8d",
"ciphers": [
"AES256",
"AES192",
"AES128"
],
"size": 2048,
"created": "2026-11-22T19:31:06Z",
"expires": "2027-11-22T19:31:06Z",
"private": true,
"deleted": false
}
]
}
POST /WebInterface/api/v1/keys/pgp/{id}/rename #
Give a key a new name. A deleted key that is renamed is restored.
- Operation:
pgp.rename - Credentials:
tokenorbasicorsession - Permission:
keys.pgp.manage - Tier:
1 - Legacy:
renamePGP - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The key's id, as the list gives it. |
dry_run |
query | boolean | Run every check, change nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | The key's new name. |
Example request body
{
"name": "API Gate Key Renamed"
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
ciphers |
list of string | ||
created |
string | ||
deleted |
boolean | ||
expires |
string | ||
fingerprint |
string | ||
id |
string | ||
name |
string | ||
private |
boolean | ||
size |
integer | ||
user_id |
string |
Example 200 response
{
"id": "C406556E",
"name": "API Gate Key Renamed",
"user_id": "API Gate Key Renamed",
"fingerprint": "4808517e4c540201c87a2479ba061096c406556e",
"ciphers": [
"AES256",
"AES128"
],
"size": 2048,
"created": "2026-11-22T19:29:49Z",
"expires": "2026-12-22T19:29:49Z",
"private": true,
"deleted": false
}
POST /WebInterface/api/v1/keys/pgp-password #
Change the password the server's key ring is saved with.
- Operation:
pgp.password.change - Credentials:
tokenorbasicorsession - Permission:
keys.pgp.manage - Tier:
1 - Legacy:
changePGPPassword - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Run every check, change nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
password |
string | yes | The key ring's new password, 8 characters or more. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
DELETE /WebInterface/api/v1/keys/pgp/{id} #
Delete a key: it moves to the deleted keys; a deleted key that is deleted is gone for good.
- Operation:
pgp.delete - Credentials:
tokenorbasicorsession - Permission:
keys.pgp.manage - Tier:
1 - Legacy:
removePGP - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The key's id, as the list gives it. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would happen to the key. Default false. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
POST /WebInterface/api/v1/keys/pgp/{id}/export #
A key's public key, armored. A private key never leaves the server through the API.
- Operation:
pgp.export - Credentials:
tokenorbasicorsession - Permission:
keys.pgp.export - Tier:
1 - Legacy:
exportPGP - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The key's id, as the list gives it. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
private |
boolean | A private key is never exported through the API: true is refused. Default false. |
Example request body
{}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | ||
public_key |
string |
Example 200 response
{
"id": "C406556E",
"public_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: CrushFTP OpenPGP\n\nxsBNBGsDQq0BCACtSO2glKYXWVuO+ZvPy5UV5vwpiQ9tQtGkoJpyhbqE5zZySeR1\n424dlSeLzl5MNE6fIZQhCnqP6GSrDnuE/dgMCv/HraXGw0ir67q9RceTvLebjAQC\niP4DpOxUhd/Cu0hANU8A8r8zi3ZxvgEzd44P8th9SyhJaAh8x9QX+Q92zekthJyd\nAUDyV5sV8pnHjyoYPR1IvGRfX8opdoDpnH6i6LJNMK3TVt8MN4tTowJqKfALFt/A\n5CNYvARS/zye4x07tZuVjSRBkGVJYieUKE36PSy5/vItGUEx6kZ9u2W4kkScAYsq\nhFQ6GJN8fYDIivE4l7YzHm6E3c0I4vQjk5UhABEBAAHNH0FQSSBHYXRlIEtleSA8\nZ2F0ZUBleGFtcGxlLmNvbT7CwHsEEwEIACUFgmsDQq0FCQAnjQACGwMDCwkHBhUC\nCAkKAQQWAQIAAh4BAhkBAAoJELoGEJbEBlVuCx4IAJrghN94n4G9+lH9BXdVsse0\nYWqCT8wG2umM0AjoYBiCFXQtDhlqF3w6YdBmYhvNiRdOgsHuOH+yXn/c/dM6r7Q/\nF4b3mVWFp1LFE/vdPvmSWpWYZk8drjgRYxa0+IoQtnlGsgXVmlFrPGho6CS+ltMn\nI/IMOrMk1WNFZAeZOU0cYNOwsH9+2zZlv29OnVKPQ8TlYeum5ji2dnlRRDbn8wbU\nyCSIiAF/PWd9YgPeVDO93u+Cawatr7Ukv2e765ISnq1s0MJNpSChvKepWE9d45yv\niPUkwldEf4nYkTJmi2YRskxNDz2N1+/i0K6G40FN1hXoTSg39PNb7KmhMD2slhnO\nwE0EawNCrQEIAKZzr7TI3UPgTTo22e+o9GmL4oJPXC2wtmiagSd/y6ALWK+kEwlI\nkHu1oAINzc1ldwkumz98+SI+RT..."
}
POST /WebInterface/api/v1/keys/file-generate #
Make a PGP key pair for the server's file encryption in its key folder, with a password the server keeps. use makes it the server's key.
- Operation:
file-keys.generate - Credentials:
tokenorbasicorsession - Permission:
keys.file.generate - Tier:
1 - Legacy:
generateFileKey - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Run every check, change nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | The key's name: its files are <name>.pub and <name>.key in the server's key folder. Default files. |
|
size |
integer | 2048, 3072 or 4096 bits. Default 4096. |
|
days |
integer | Days until it expires; 0 for never. Default 0. |
|
common_name |
string | The name in the key. | |
use |
boolean | Make it the server's file encryption key (filePublicEncryptionKey, fileDecryptionKey). Needs prefs.keys.edit too. Default false. |
Example request body
{
"name": "gatefk",
"size": 2048
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
in_use |
boolean | ||
name |
string | ||
private_key_file |
string | ||
public_key |
string | ||
public_key_file |
string | ||
size |
integer |
Example 201 response
{
"name": "gatefk",
"public_key_file": "/var/opt/CrushMFT27/keys/files/gatefk.pub",
"private_key_file": "/var/opt/CrushMFT27/keys/files/gatefk.key",
"public_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: CrushFTP OpenPGP\n\nxsBNBGsDQy8BCADQIJ7llawmnwc7PGtsKzUpi/XoAPaKiygsi8+FM1I8e+EVorR+\n8vDke+LkzCrD8JVOuaxXJ+WC9Fnsf6e4wHualr9qjS6oTiNyFILKLSocRRqKJtXG\nQCweDZMOEZ25tGvmbj3ZZSkkgK/50IDuXG9aOsaFNDF10zezXzjNwBmfLlWU1GRt\ntugOMmsCGSEJh0/99Vs46GZsBJX1hwTS5Zfyq6LUiuVnnH27MmwxvJpqvhmgDm+j\nYNDgVS4LGH8TWhk+IVGj60dwvA1CagELu52HxeuxjXtWw3HiBb3BSw2AoS5xZ06o\nsvbv6b4Y9y5RaCIBJzwqUcIGiwK+41X7tbUTABEBAAHNFkZpbGUgZW5jcnlwdGlv\nbiBnYXRlZmvCwHgEEwEIACIFgmsDQy8CGwMGCwMHCAkKBhUCCAkKAQQWAQIAAh4B\nAhkBAAoJEA8HguLMHP2D/yYH/RLd0uCiT8wI3tYNyPciICeyqaFKWsq5m099cIh+\n4n6FmXAlHWo35iwf8FOcmgzRnwwJhu5MzQeUJqKo0s2DfjKqSvYAbqQNyiBz9KIC\neYmS/8MDfx2h8N9elyZaXDnCKpG9vkmQJ2nejwPY+04Wp5XA9ZvKCzE7U0g3PaBP\ndQl0CpIOXkCFi4h9rs7I6A5YqOc2a7dRB3a9HVHYxY2B7IIE/7R4kJJ4s/qvQSAy\nMGLqjAEsN68Jg0nubGGkmz3Ua2ES2M41WrTk9HqB7dFbSSTM9IPZHB/srClK6y43\ntYgrGSiS8LKYlIqIpuSj0zHm5w/NGnZ2t5Mdvnqi4GagiSDOwE0EawNDLwEIAOJz\nAwGWJ9qN/ZULbsNGquPJnfH3tRnKGxZ4upzP2oCEnM2cmAUMoMsM1R/s8q/Q8wcH\nsGxgNeuKg/7PU2rAFEL9N3n6kf...",
"size": 2048,
"in_use": false
}
POST /WebInterface/api/v1/keys/kerberos #
Keep a keytab in the server's kerberos folder, readable by the server's own account only, as <name>.keytab; one of that name is replaced. Answers where it is and what it holds.
- Operation:
kerberos.keytabs.upload - Credentials:
basicorsession - Permission:
prefs.userstore.edit - Tier:
0 - Legacy:
uploadKeytab - Token:
never - Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dry_run |
query | boolean | Check what was sent and say where it would go, keep nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | The credential's name. The file is <name>.keytab, with letters, digits, dots, dashes and underscores kept and anything else made _. |
keytab |
string | yes | The keytab file, base64 encoded; at most 1 MB. |
Example request body
{
"name": "gate kt",
"keytab": "BQIAAABYAAIAC0VYQU1QTEUuQ09NAARjaWZzABBnYXRlLmV4YW1wbGUuY29tAAAAAWsDQvwDABIAIPjfd9dFx2fBpIOegViUGwGvSlx8urEwKLkNPhxGH9thAAAAAw=="
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
entries |
list of object | ||
entries[].enctype |
string | ||
entries[].kvno |
integer | ||
entries[].principal |
string | ||
entries[].realm |
string | ||
entries[].written |
string | ||
path |
string | ||
replaced |
boolean |
Example 200 response
{
"path": "/var/opt/CrushMFT27/kerberos/gate_kt.keytab",
"replaced": true,
"entries": [
{
"principal": "cifs/gate.example.com@EXAMPLE.COM",
"realm": "EXAMPLE.COM",
"kvno": 3,
"enctype": "aes256-cts-hmac-sha1-96",
"written": "2026-11-22T19:31:08Z"
}
]
}
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
entries |
list of object | ||
entries[].enctype |
string | ||
entries[].kvno |
integer | ||
entries[].principal |
string | ||
entries[].realm |
string | ||
entries[].written |
string | ||
path |
string | ||
replaced |
boolean |
Schemas used here#
Problem #
An error (RFC 9457), as application/problem+json. code is stable and is what a program switches on; detail says it in words; request_id finds the request in the server log.
| Code | Status | Meaning |
|---|---|---|
bad_request |
400 | The request cannot be read: a broken path, an unknown or badly typed parameter, a body that is not a JSON object. |
validation_failed |
422 | The body is well-formed, but one or more of its fields cannot be used. errors lists each field, the rule and a message. |
unauthenticated |
401 | No credential, or one that did not log in. |
forbidden |
403 | Logged in, and refused. detail carries the reason the access engine gave. |
tier0 |
403 | The operation is equal to full control of the server. No token may use it, and of the accounts only the Administrator role. |
read_only_token |
403 | The token is read-only and the operation changes something. |
legacy_account |
403 | The account holds legacy admin flags, which the API does not act on. Convert it to roles, or issue a token for it. |
not_open_yet |
403 | The command behind the operation is not switched on for roles and tokens yet. An administrator's own login can use it. |
dmz_not_allowed |
403 | The request came through a DMZ, and the API does not answer those unless api_from_dmz allows it. |
edition_required |
403 | The operation needs an edition this server is not licensed for. |
not_found |
404 | No such operation, no such object, or an object the caller's scope does not cover. |
method_not_allowed |
405 | The path exists and the method does not. Allow lists the methods that do. |
conflict |
409 | The object already exists, or is in a state that does not allow this. |
precondition_failed |
412 | If-Match did not match: the object changed since it was read. |
payload_too_large |
413 | The body is larger than api_max_body_kb. |
unsupported_media_type |
415 | A body must be Content-Type: application/json. |
rate_limited |
429 | Too many requests for this credential or address in this minute. Retry-After says when to try again. |
internal_error |
500 | A fault in the server. The server log has the cause under the request id. |
not_implemented |
501 | The operation is in the registry and is not built on this server yet. |
unavailable |
503 | The server is starting or shutting down. |
fips_restricted |
409 | The server runs in FIPS 140-3 mode (launched with -Dcrushmft.fips=true), and FIPS mode does not allow what was asked: the detail is the catalog row's reason and what to use instead, fips_id its id (CrushFTP design/61 section 5). |
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | ||
title |
string | ||
code |
string, one of bad_request, validation_failed, unauthenticated, forbidden, tier0, read_only_token, legacy_account, not_open_yet, dmz_not_allowed, edition_required, not_found, method_not_allowed, conflict, precondition_failed, payload_too_large, unsupported_media_type, rate_limited, internal_error, not_implemented, unavailable, fips_restricted |
||
detail |
string | ||
operation |
string | ||
permission |
string | ||
request_id |
string | ||
status |
integer |
vfs_item #
| Field | Type | Required | Description |
|---|---|---|---|
extra |
object | Keys this table does not name yet, and values that did not fit their field's type, as the server holds them. A read followed by a write of the same object loses nothing. | |
modified |
string (date-time) or null | ||
name |
string | ||
path |
string | The virtual folder the item is in | |
type |
string | DIR or FILE | |
url |
string | Where it points. A password inside the URL is masked |