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": "ut irure velit",
"certificate": "labore",
"alias": "irure",
"contract_id": "sint adipisicing",
"host": "in sit ut aliquip eiusmod",
"issuer": "ad",
"self_signed": true,
"type": "Root",
"validity": {
"notBefore": "1978-01-25T21:50:27.04Z",
"notAfter": "2019-11-17T14:56:51.787Z"
},
"updatedAt": "2001-01-30T02:29:06.137Z"
}
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"
}
}
}