Get information about SSL certificates configuration and status.
Returns information about SSL certificate status and renewal configuration.
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE getWebCert --host https://$HOST:9443Responses
Details of the certificate.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
letsEncrypt boolean If true, the certificate is obtained from Let's Encrypt service and renewed automatically. Otherwise, the certificate management is up to the administrator. | |||||||
expirationTime string Installed certificate's expiration time in ISO 8601 format. | |||||||
creationTime string Installed certificate's creation time in ISO 8601 format. | |||||||
status string Describes certificate validity status. Enum: validnear_expirationexpireddomain_mismatchregeneratingunknown | |||||||
paths object Paths to certificate-related files.
| |||||||
domain string The domain (Common Name) for which current certificate was issued. | |||||||
issuer string Issuer value of the current certificate. | |||||||
lastRenewalSuccess string Date and time in ISO 8601 format. Represents last successful Let's Encrypt certification. If there are no successful attempts its value is null. This property is omitted if letsEncrypt is off. | |||||||
lastRenewalFailure string Date and time in ISO 8601 format. Represents last unsuccessful Let's Encrypt certification. If there are no successful attempts its value is null. This property is omitted if letsEncrypt is off. | |||||||
Example
{
"paths": {
"cert": "/etc/oz_panel/certs/web_cert.pem",
"key": "/etc/oz_panel/certs/web_key.pem",
"chain": "/etc/oz_panel/certs/web_chain.pem"
},
"obtainedTime": "2018-07-11T13:11:05Z",
"letsEncrypt": true,
"issuer": "LE Intermediate X3",
"expirationTime": "2018-10-09T13:11:05Z",
"domain": "onedata.org"
}Forbidden request.
Cluster hosts are not configured.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}