certificate
Retrieve a certificate for an organization.
certificate(
certificateId: Int
clientId: Int
): Certificate
Example
- Query
- Variables
- Response
query ($certificateId: Int, $clientId: Int) {
certificate(certificateId: $certificateId, clientId: $clientId) {
active
beginsTimestamp
certificateId
commonName
created
csr
csrDecoded {
altNames
commonName
country
emailAddress
locality
organization
organizationUnit
state
}
expiresTimestamp
hasCertificate
issuer {
commonName
country
organization
}
san
valid
}
}
{
"certificateId": 42,
"clientId": 42
}
{
"data": {
"certificate": {
"active": true,
"beginsTimestamp": "beginsTimestamp",
"certificateId": 42,
"commonName": "commonName",
"created": "created",
"csr": "csr",
"csrDecoded": {
"altNames": [
"altNames"
],
"commonName": "commonName",
"country": "Canada",
"emailAddress": "emailAddress",
"locality": "locality",
"organization": "organization",
"organizationUnit": "organizationUnit",
"state": "Quebec"
},
"expiresTimestamp": "expiresTimestamp",
"hasCertificate": true,
"issuer": {
"commonName": "commonName",
"country": "Canada",
"organization": "organization"
},
"san": [
"san"
],
"valid": true
}
}
}
Arguments
certificate.certificateId ● Int scalar common
The certificate ID.
certificate.clientId ● Int scalar common
The organization ID that owns the certificate.
Type
Certificate object common
A TLS certificate.