POST api/Certificate/DecodeCSR

Decode a csr

Request Information

URI Parameters

None.

Body Parameters

csr object

Csr
NameDescriptionTypeAdditional information
CSR

string

Required

String length: inclusive between 900 and 20000

Product

NBProductCode

Required

String length: inclusive between 1 and 50

ProductCode

ProductCodes

None.

NBProduct

NBProductCode

None.

Request Formats

application/json, text/json

Sample:
{
  "CSR": "sample string 1",
  "ProductCode": null,
  "NBProduct": 0
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object containing details of the decoded csr 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
722 - CSR is invalid
706 - unexpected error

CsrDecoded
NameDescriptionTypeAdditional information
CSR

string

None.

Product

string

None.

CommonName

string

Required

Organization

string

Required

OrganizationUnit

string

Required

Locality

string

Required

State

string

Required

Country

string

Required

EmailAddress

string

Required

KeyLength

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CSR": "sample string 1",
  "Product": "sample string 2",
  "CommonName": "sample string 3",
  "Organization": "sample string 4",
  "OrganizationUnit": "sample string 5",
  "Locality": "sample string 6",
  "State": "sample string 7",
  "Country": "sample string 8",
  "EmailAddress": "sample string 9",
  "KeyLength": 10
}

application/xml, text/xml

Sample:
<CsrDecoded 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 3</CommonName>
  <Country>sample string 8</Country>
  <EmailAddress>sample string 9</EmailAddress>
  <KeyLength>10</KeyLength>
  <Locality>sample string 6</Locality>
  <Organization>sample string 4</Organization>
  <OrganizationUnit>sample string 5</OrganizationUnit>
  <Product>sample string 2</Product>
  <State>sample string 7</State>
</CsrDecoded>