GET api/Certificate/{handle}/csr?user={user}
Get the CSR of a certificate
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| handle |
Object handle |
string |
Required |
| user |
Owner of object |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
A csr object on success
Collection of errors on failure
Return codes
200 - ok
300 - ambiguous
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
| Name | Description | Type | Additional information |
|---|---|---|---|
| CSR | string |
Required String length: inclusive between 900 and 20000 |
|
| CommonName | string |
Required String length: inclusive between 4 and 255 |
Response Formats
application/json, text/json
Sample:
{
"CSR": "sample string 1",
"CommonName": "sample string 2"
}
application/xml, text/xml
Sample:
<GetCsr xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.API.Interface.Models.Certificates"> <CSR>sample string 1</CSR> <CommonName>sample string 2</CommonName> </GetCsr>