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": "adipisicing et dolore nostrud enim",
"certificate": "consectetur consequat quis",
"alias": "ea eiusmod",
"contract_id": "incididunt tempor",
"host": "enim commodo do et consectetur",
"issuer": "laboris aliqua fugiat",
"self_signed": false,
"type": "Root",
"validity": {
"notBefore": "1974-01-06T13:25:42.988Z",
"notAfter": "1990-03-04T18:37:14.207Z"
},
"updatedAt": "1996-01-11T08:02:21.237Z"
}
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"
}
}
}