/api/cert/clear
Use this interface to remove a certificate with the private key.
System configuration editing permissions are required.
Prototype
| Protocol | HTTP/HTTPS POST/GET |
| URL | ip[:port]/api/cert/clear |
| Content-Type | Request: Content-Type: application/json Response: Content-Type: application/json |
Request Cookies
| Parameter | Description |
|---|---|
| mwcloud-sid | A string that is used to identify current logged-in user. |
| mwcloud-uid | Current logged-in username. |
Request Body
A binary file.
Request Example
GET /api/cert/clear HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: xx
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
Response Parameters
Response Header
| Parameter | Description |
|---|---|
| Content-Type | Value: 'application/json; charset=UTF-8' |
Response Body
| Parameter | Description |
|---|---|
| result | Result code |
Response Example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: xxx
{
"result": 0,
}