Updated on 2022-08-09 GMT+08:00

Verifying a CSR

Function

This API is used to verify a certificate signing request (CSR) and resolve the domain name.

URI

  • URI format

    POST /v2/{project_id}/scm/check-csr

  • Parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

Request

Request parameters

Parameter

Mandatory

Type

Description

csr

Yes

String

Certificate signing request.

Response

Response parameters

Parameter

Mandatory

Type

Description

domain_name

Yes

String

Domain name in the CSR.

Example

The following describes how to verify a CSR.

  • Example request
    {
        "csr":"-----BEGIN NEW CERTIFICATE REQUEST-----******-----END NEW CERTIFICATE REQUEST-----"
    }
  • Example response
    {
        "domain": "a.example1.com"
    }

    or

    { 
       "error_code": "SCM.XXXX",  
       "error_msg": "XXXX"   
     }

Status Codes

Table 1 lists the normal status code returned by the API.
Table 1 Status code

Status Code

Status

Description

200

OK

Request processed successfully.

For details about error codes, see Error Codes