Gateway Insert Gateway Certificate

Gateway Insert Gateway Certificate

If there is a pending CSR, insert gateway certificate from external CA

Privileges required:

UPDATE OPERATOR_PKI

Request
URI
POST
https://{api_host}/portal/rest/pki/insertGatewayCertificate
COPY
Request Body

Show optional properties

{
    "certificate": "string"
}
{
    "gatewayId": 0,
    "deviceId": "string",
    "enterpriseId": 0,
    "certificate": "string"
}
integer
gatewayId
Optional

gatewayId

string
deviceId
Optional

deviceId

integer
enterpriseId
Optional

enterpriseId

string
certificate
Required

certificate

Responses
200

Request was successfully processed

Returns gateway_insert_gateway_certificate_result of type(s) application/json
{
    "id": 0,
    "created": "string",
    "csrId": 0,
    "gatewayId": 0,
    "networkId": 0,
    "certificate": "string",
    "serialNumber": "string",
    "subjectKeyId": "string",
    "authorityKeyId": "string",
    "fingerPrint": "string",
    "fingerPrint256": "string",
    "validFrom": "string",
    "validTo": "string",
    "subject": "string",
    "issuer": "string"
}

400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"certificate:"string"}' https://{api_host}/portal/rest/pki/insertGatewayCertificate