NPU-Exporter Certificate Validity Period Query API
Function
Provides an API to query the validity period of a certificate used by the component HTTPS service.
URL
GET https://ip:port/v1/certstatus
Request Parameters
None
Response Description
{
"175ea920b98f954c313b798d3117b08a7da35ee7673a9fa7342fc203b3178904": {
"not_before": "2021-09-16T02:41:59Z",
"not_after": "2121-08-23T02:41:59Z",
"is_ca": true, # If the certificate is a root certificate, this field is returned.
"fingerprint_sha256": "175ea920b98f954c313b798d3117b08a7da35ee7673a9fa7342fc203b3178904" # Certificate SHA256 fingerprint information
},
"c7a091152290347be45cf07838b5a14896bc2cc3e41b71645d1606fa6ef86dd5": {
"not_before": "2021-09-16T07:23:29Z",
"not_after": "2022-09-16T07:23:29Z",
"fingerprint_sha256": "c7a091152290347be45cf07838b5a14896bc2cc3e41b71645d1606fa6ef86dd5"
}
}
Status Code
Status Code |
Description |
|---|---|
200 |
Normal |
307 |
Temporary redirection |
500 |
Internal server error |
Parent topic: NPU-Exporter