OCSP 测试请求
OCSP 测试请求
Redis 企业软件 |
---|
方法 | 路径 | 描述 |
---|---|---|
发布 | /v1/ocsp/test |
测试 OCSP |
测试 OCSP
POST /v1/ocsp/test
查询 OCSP 服务器以获取代理证书的最新状态,并以 JSON 格式返回响应。如果启用了 OCSP 功能,它会缓存响应。
所需权限
权限名称 |
---|
test_ocsp_status |
请求
HTTP 请求示例
POST /v1/ocsp/test
请求标头
钥匙 | 价值 | 描述 |
---|---|---|
主机 | cnm.cluster.fqdn 中 | 域名 |
接受 | 应用程序/JSON | 接受的媒体类型 |
响应
返回 OCSP 状态对象。
示例 JSON 正文
{
"responder_url": "http://responder.ocsp.url.com",
"cert_status": "REVOKED",
"produced_at": "Wed, 22 Dec 2021 12:50:11 GMT",
"this_update": "Wed, 22 Dec 2021 12:50:11 GMT",
"next_update": "Wed, 22 Dec 2021 14:50:00 GMT",
"revocation_time": "Wed, 22 Dec 2021 12:50:04 GMT"
}
Error codes
When errors occur, the server returns a JSON object with error_code
and message
fields that provide additional information. The following are possible error_code
values:
Code
Description
no_responder_url
Tried to test OCSP status with no responder URL configured
ocsp_unsupported_by_capability
Not all nodes support OCSP capability
task_queued_for_too_long
OCSP polling task was in status “queued” for over 5 seconds
invalid_ocsp_response
The server returned a response that is not compatible with OCSP
Status codes
Code
Description
200 OK
Success querying the OCSP server
406 Not Acceptable
Feature is not supported in all nodes
500 Internal Server Error
responder_url
is not configured or polling task failed
On this page