Inspect a certificate before uploading
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
Parses a certificate PEM and reports its subject, issuer, validity and
SANs — without installing anything. eligible lists the SANs that belong
to this domain and may therefore be passed as hostnames to the upload
call; default_selection is the subset the panel pre-selects.
Requires ssl.manage.
Path parameters
- domainstringrequiredpath
The domain name (for example
example.com) — not a numeric id.
Request body
Content type: application/json · required
- certificatestringrequired
PEM-encoded certificate.
Responses
200Parsed certificate.
Content type: application/json
- subjectstring
- issuerstring
- sansarray of string
Every SAN on the certificate.
- eligiblearray of string
The SANs that belong to this domain and may be passed as
hostnameson upload. - default_selectionarray of string
The subset of
eligiblecovering the apex and its wildcard. - expires_atstring (date-time)
- issued_atstring (date-time)
{
"subject": "string",
"issuer": "string",
"sans": [
"string"
],
"eligible": [
"string"
],
"default_selection": [
"string"
],
"expires_at": "2026-01-01T00:00:00Z",
"issued_at": "2026-01-01T00:00:00Z"
}400Missing or unparseable certificate PEM.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}403The key is read-only and this endpoint is a write. Read-only keys may
only issue GET, HEAD and OPTIONS.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X POST "https://api.nsin.ir/domains/example.com/ssl/parse" \
-H "Authorization: Bearer $NSIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"certificate": "string"
}'