Summary
Update a certificate by Id
Description
Update a certificate in the certificate store
Route
PUT /gateway_manager/v1/certificates/:id
Roles
certificate:update
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
Id of certificate (MongoDB ObjectId as string) |
alias |
string |
yes |
arbitrary display name for certificate |
Copied to Clipboard
{
"alias": "random_cert"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"alias": {
"title": "alias",
"type": "string",
"examples": [
"random_cert"
]
}
},
"required": [
"alias"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
string |
Information about the certificate that was just updated |
Copied to Clipboard
{
"_id": "eu",
"certificate": "consequat in",
"alias": "amet officia ut sint",
"contract_id": "consectetur sunt irure eu ad",
"host": "ad est consectetur",
"issuer": "in Ut Lorem velit",
"self_signed": true,
"type": "Intermediate",
"validity": {
"notBefore": "1962-08-25T15:45:50.73Z",
"notAfter": "1981-04-10T19:53:07.126Z"
},
"updatedAt": "2005-01-08T15:59:28.166Z"
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"_id": {
"type": "string",
"example": "6853177801de7d29d95c123b"
},
"certificate": {
"type": "string",
"description": "PEM-encoded certificate string"
},
"alias": {
"type": "string",
"example": "test"
},
"contract_id": {
"type": "string",
"example": "cluster-1"
},
"host": {
"type": "string",
"example": "host_name"
},
"issuer": {
"type": "string",
"example": "E6"
},
"self_signed": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"Host",
"Intermediate",
"Root"
]
},
"validity": {
"type": "object",
"properties": {
"notBefore": {
"type": "string",
"format": "date-time"
},
"notAfter": {
"type": "string",
"format": "date-time"
}
},
"required": [
"notBefore",
"notAfter"
]
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
}
}