接口功能介绍
上传CSR
接口约束
暂无
URI
POST /v1/csr/upload
路径参数
无
Query参数
无
请求参数
请求头header参数
无
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
name | 否 | String | CSR名称 | test1 | |
csr | 是 | String | CSR字符串 | -----BEGIN CERTIFICATE REQUEST-----MIIC1TCCAb0CAQAwaDELMAkGA1UEBhMCQ04xEjAQBgNVBAgMCeWkqea0peW4gjESMBAGA1UEBwwJ5aSp5rSl5biCMRAwDgYDVQQDDAd0ZXN0LmNuMQ0wCwYDVQQKDARhYWFhMRAwDgYDVQQLDAdzZGFkcXdkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs7inXHHqxxamBtnYMVM+7XBsbdFgddeEE/cU85N/+D/1RfSGp6cy/KV1UnT7+irDbaWDDUiY+tLrB/ndaKFkpTomqEkItAcXmSVcMcJ7TppClo6WukaWv/qzcg+tLFOWbQmwrgziNg4M1Z2fyCGOCyy/Tzq5++rREwqXwMTP+uUOZDTxiODEmt7vBtNs/S50GD8ymGs8JiGkL2F2+Og1B59aJt6h3i9OBPRmpcKJslDRSxyVS5GBvoju6NdGyJMKeSIUicuvKWe8j4AbQls8secptMplXKaBtWgU0VU97aw61UfOe8EBQA/sKwHu20oXLznLa0+BVPHcoMTOm+qnjQIDAQABoCgwJgYJKoZIhvcNAQkOMRkwFzAVBgNVHREBAf8ECzAJggdhYmMuY29tMA0GCSqGSIb3DQEBCwUAA4IBAQCaFI8SRhplNAjTWnz9QjOBJJUV1EfVedIWC8C4TiguZDQa3uYjUkFYdX3lEzNYBhAUeYyJGqNZ2qM8v8HJ1cm+FTGaWrqcaJIWsdRSLRTVVkt0svqe0HzWtBQYlkUa+GrY9qZ+XmNoE6nbeLtUrz/6y4yFKHiZsztqIXH4VdI6KQ4WiXPE16ZMPdziN6AXNmcu+8o6PpF9P7yenMUq05lIFQ174M8wzWX1r7GiD/ren3tJLJ3W4FK/CtdAC/TR95IFkZr4eMf25LZeAPmsagmeSUus2WynqPr+XRgZCOOgkb1meV5XwUIwqgXifvSZoiFCLqcv8IObP5FiphJf13tU-----END CERTIFICATE REQUEST----- | |
privateKey | 是 | String | 私钥 | -----BEGIN PRIVATE KEY-----MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCzuKdccerHFqYG2dgxUz7tcGxt0WB114QT9xTzk3/4P/VF9IanpzL8pXVSdPv6KsNtpYMNSJj60usH+d1ooWSlOiaoSQi0BxeZJVwxwntOmkKWjpa6Rpa/+rNyD60sU5ZtCbCuDOI2DgzVnZ/IIY4LLL9POrn76tETCpfAxM/65Q5kNPGI4MSa3u8G02z9LnQYPzKYazwmIaQvYXb46DUHn1om3qHeL04E9GalwomyUNFLHJVLkYG+iO7o10bIkwp5IhSJy68pZ7yPgBtCWzyx5ym0ymVcpoG1aBTRVT3trDrVR857wQFAD+wrAe7bShcvOctrT4FU8dygxM6b6qeNAgMBAAECggEAEDjVJnOD4ReKweiM6prcfbsdlmYFQm3DFrhBNGE2dlZzka5qLxzY7dQTfG9hxSlx/WYop5zLbix2mYA0u3qB5qYSkjMRbYqMVz73jOhEkAo9g3B4a3Tuq4J6CwweMfeThuEOiQ9RpdZr0yZIo1xgAWM3G3QuEG6YE5NrsjMxoLBAVleiUQ68myzfPpsdlYTV26HiZMIkfpU4ho1svivq1PGICdMqv5gbi00Syk9VZW53p9nKpuhUIJZOn+gDdV9X7y/mX2VhFgGtozUxh+66JQTVp0qljXiwiEQ9CMjEy3xZPc5o6n+GbcNq0NMaa0tWFcFgxW/Bj0rjBZmVvgudowKBgQDqQ4SkDt4ibze3NlF9+2DOGf0Ksoo4ezn4FY3l6uwTtZewRmVOaTsEbMnk7EDpFKd/i4qCvmChtcCZoU3su9IC3M0eXEw4/n04MYSvK8olA4bDl/8R5Ue2hgcBu205opN7UCgbAVbDj+91v1x8NAg5SzD0ZjDkz/+6DEpTm06wowKBgQDEZZXltrlySg49hyOP0LtN/hiyOVXe34T58V2KMPHwQFX+gnKX6I0RYfUkr5zGNhuFcxURuH1SKDm6pQHLi+LhSc+7w4Z+p5rW5k8sQBnG37vgjo3hcz+ifFsRWoHsyIxJHBuUiiuJeUJjPRs2nLVgQZPXe4ARxh88of9jaUdaDwKBgQCxh2NAdKfwTnpZlIdjQpoU9mrlrXHD5daDY8o5/7LSKN6AToi9SE/aRZsmqcdzGxzoMlZQSHewdK01f6EvExLO6odjR6zX0DwS1qvnl/bD4A1Dsq8w36Fd9+ndbS0T7Vl4rMEH3hbjcvOUNuWelkvZJ1s9Cyhobhws4N1+yIZ0owKBgQCONPhrEvoItXLGPnoTgpJ9kMWVF0sETFjfGlQe4f3tdshNt2r+b9blhUaaP8aHB1q6MHBLGokz2gijCyPXnPy1IFsYnCVgxD+r56vgYLHJfOtvWAmH+4lSQDU4xY5aQ4TA02dtEPchXfoiHXb8/k+e2R0R5E0BkbHAl5RzCSIvJQKBgQCpaWyBPxLYWt6vpSvaRJjcA5GdWZ2/pYJx31T1QjEZuD5TYDaIUof6CBIpwr0GDusbES92W7FpQuhDd5flaRpSd5UWZgWN46vWiZGqU5QL6OUaGay+ZvK21KTE+rIifkPomLXZwpjXsiGwOwaqpovE/SnXk9tArtPkhscOcR9aaQ==-----END PRIVATE KEY----- |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 状态码 | 200 | |
message | String | 提示信息 | Success | |
error | String | 错误码,仅错误时返回 | CCMS_100000063 |
枚举参数
无
请求示例
请求url
无
请求头header
无
请求体body
{
"name": "test2626",
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIC1TCCAb0CAQAwaDELMAkGA1UEBhMCQ04xEjAQBgNVBAgMCeWkqea0peW4gjES\nMBAGA1UEBwwJ5aSp5rSl5biCMRAwDgYDVQQDDAd0ZXN0LmNuMQ0wCwYDVQQKDARh\nYWFhMRAwDgYDVQQLDAdzZGFkcXdkMIIBIjANBgkqhk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