Skip to main content
POST
Validate CSD certificate and optionally verify private key password

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
password
string

Password for the private key

Example:

"mypassword123"

Response

Certificate validation result with extracted metadata.

valid
boolean
required

Whether the certificate is valid

Example:

true

rfc
string

RFC extracted from the certificate

Example:

"XAXX010101000"

serialNumber
string

Certificate serial number

Example:

"30001000000300023708"

expiresAt
string<date-time>

Certificate expiration date

Example:

"2025-05-15T00:00:00.000Z"

issuedAt
string<date-time>

Certificate issue date

Example:

"2021-05-15T00:00:00.000Z"

subjectName
string

Subject common name from certificate

Example:

"EMPRESA EJEMPLO SA DE CV"

error
string

Error message if validation failed

Example:

"Invalid certificate format"

isExpired
boolean

Whether the certificate has expired

Example:

false

passwordValid
boolean

Whether the password is valid for the private key

Example:

true

passwordError
string

Error message if password validation failed

Example:

"Incorrect password"

pairValid
boolean

Whether the certificate and private key form a matching CSD pair

Example:

true

pairError
string

Error message if the certificate and private key do not match

Example:

"The certificate (.cer) and private key (.key) do not form a matching CSD pair"