Indicates whether the certificate is a CA or leaf certificate.
certificates?: string
The uploaded root CA certificate.
expires_on?: string
(format: date-time)
When the certificate expires.
issuer?: string
The certificate authority that issued the certificate.
name?: string
Optional unique name for the certificate. Only used for human readability.
serial_number?: string
The certificate serial number.
signature?: string
The type of hash used for the certificate.
uploaded_on?: string
(format: date-time)
This is the time the certificate was uploaded.
Request example
importCloudflarefrom'cloudflare';
const client = newCloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.forawait (const mtlsCertificate of client.mtlsCertificates.list({
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
})) {
console.log(mtlsCertificate.id);
}