业务说明和提示

获取证书:此操作需要根据返回的ID去获取证书,对于DV证书域名校验完成后即可获取证书,OV和EV则需要域名校验和附件审核同时完成才能获取证书。获取证书可以获取证书内容、证书序列号等相关信息。


API_FUNCTION_NAME
构造后的API Endpoint
getCertificate https://mall.okcert.cn/jeecg/okcertController.do?getCertificate

业务参数

参数名称 类型 是否必填 数据说明及要求 数据举例
token String 必填 必须是由getToken返回的结果。 /
data orderId String 必填 订单返回的orderId。 402880026cd83479016cd83bdfeb0002

响应参数

参数 类型 描述 示例
msg String 返回携带的提示信息。 获取证书成功
code String 当正确时,返回的为0, 其他参数代表具体含义,详见码表。 0
data orderId String 订单ID。 402880026cd83479016cd83bdfeb0002
startTime String 开始时间。 2020-01-03 01:52:21
endTime String 结束时间。 2021-01-02 01:52:21
serialNumber String 证书序列号。 6127b1523bd16d578852ed4ce9a755ee
cert String 正书内容:返回的数据中”\n”代表换行。 -----BEGIN CERTIFICATE-----
*********************************************
-----END CERTIFICATE-----

成功响应

成功响应
{
     "code" : "0" ,
     "data" : {
         "startTime" : "2020-01-03 01:52:21" ,
         "cert" : "-----BEGIN CERTIFICATE-----
                   MIIF8jCCBNqgAwIBAgIQYSexUjvRbVeIUu1M6adV7jANBgkqhkiG9w0BAQsFADB7
                   MQswCQYDVQQGEwJQTDEhMB8GA1UECgwYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEu
                   MSkwJwYDVQQLDCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBEaXZpc2lvbjEeMBwG
                   A1UEAwwVQ2VydHVtIFN1Ym9yZGluYXRlIENBMB4XDTIwMDEwMzA1NTIyMVoXDTIx
                   MDEwMjA1NTIyMVowJTELMAkGA1UEBhMCQ04xFjAUBgNVBAMMDXd3dy5va2NlcnQu
                   Y24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCs9fOR4CdVlgfAcFOF
                   0iNZX+5u6V97ody97dEaLAhEsgiPVhO7Uar0keztg2spWTGmhSTUG/ci22bEV3Pi
                   3ClVnzSKpzj3xfPVwzyAvNavL0iEjFwFVfnRB+7qD+qC7ZkBVCyCB60HKqM18/LX
                   1DPCUeZbdKTWYoiE1YUkDF++CUERLxSP8s36T4VDjSB/lSpizH7mn0rZr2+E3MH1
                   sFnmeLWWv4yrvR45dSniUrSalB6ZH8n2YQH7KBmVmMcQ61Ek9vkd9yiVoSkkmgUU
                   hR8d5VwMRUy+jtjJNMpVus05/dj+Sd8dz5K8tV6ixOE4yiq0NPZikijrIcYPgtFv
                   eFV1AgMBAAGjggLGMIICwjAMBgNVHRMBAf8EAjAAMDgGA1UdHwQxMC8wLaAroCmG
                   J2h0dHA6Ly9jcmwubW9kZWwuY2VydHVtLnBsL2R2Y2FzaGEyLmNybDB9BggrBgEF
                   BQcBAQRxMG8wMQYIKwYBBQUHMAGGJWh0dHA6Ly9kdmNhc2hhMi5tb2RlbC5vY3Nw
                   LWNlcnR1bS5jb20wOgYIKwYBBQUHMAKGLmh0dHA6Ly9yZXBvc2l0b3J5Lm1vZGVs
                   LmNlcnR1bS5wbC9kdmNhc2hhMi5jZXIwHwYDVR0jBBgwFoAUMGWqUBeKr3Ur+QPE
                   jhpHb297ubQwHQYDVR0OBBYEFOGpjz+crcVLne7eG7HYnJ7F6b5GMB0GA1UdEgQW
                   MBSBEmR2Y2FzaGEyQGNlcnR1bS5wbDA/BgNVHSAEODA2MDQGAyoDBDAtMCsGCCsG
                   AQUFBwIBFh9odHRwczovL3d3dy5tb2RlbC5jZXJ0dW0ucGwvQ1BTMB0GA1UdJQQW
                   MBQGCCsGAQUFBwMBBggrBgEFBQcDAjAOBgNVHQ8BAf8EBAMCBaAwIwYDVR0RBBww
                   GoINd3d3Lm9rY2VydC5jboIJb2tjZXJ0LmNuMIIBAwYKKwYBBAHWeQIEAgSB9ASB
                   8QDvAHUAsMyD5aX5fWuvfAnMKEkEhyrH6IsTLGNQt8b9JuFsbHcAAAFvafGnAAAA
                   BAMARjBEAiAQb/TAzebeKhdTeE/s7DqZoqrhEDFxi08uSMivUaa6+gIgQky6+5Xj
                   Lbzx+upFdsOVlGiYiHfrLWfXT2H3h3CNhikAdgCwzIPlpfl9a698CcwoSQSHKsfo
                   ixMsY1C3xv0m4WxsdwAAAW9p8acAAAAEAwBHMEUCIBoG4cbi/uarXWIqVomgVN+X
                   P/YRhwV8KBSXDJsoA6NvAiEA0HBXhp1D/6M48j6BZwBq27M77wjLSMhM4sm80At1
                   IqswDQYJKoZIhvcNAQELBQADggEBAJfdgf+4nDnD4e0py0iG2oS6GSas493Sll+j
                   jFh5GMjKJULS47yIXp7zhy/l0QbrQYwMkadpdiw5mPO4G1RlCr6V9owxLzMDoyWo
                   5zITWbBH2AxjRHgnddMy0X8PZM5mJp56ENCwQao/1s8yeK4Kx1To9nRPSVj/uqgG
                   bGPSQ/O8Hhweq1iDJI+b5ckh2ZdHNndx8yieeVO3lJHj9dW7dwUm2KR8vpexwMkQ
                   IdLP9MLa7yZlCCEii/DjWNbMRcHx/ZEOvFq0NYNnVBvatw+8EiYP74A5adjTdVgO
                   gXjBSdUXbsZMbqaAcPRANzdRVhYIERtoNSQox4qSiy0vgr5f2X0=
                    -----END CERTIFICATE----- "
,
         "serialNumber" : "6127b1523bd16d578852ed4ce9a755ee" ,
         "endTime" : "2021-01-02 01:52:21" ,
         "orderId" : "402880f46f59842d016f59b889c10003"
     "msg" : "获取证书成功"
}

失败响应

失败响应
{
     "code" : "1" ,
     "data" : "null" ,
     "msg" : "获取证书失败"
}