[]
        
(Showing Draft Content)

getCrlUrl

Function: getCrlUrl()

function getCrlUrl(certificatePem): string;

Extracts the first CRL (Certificate Revocation List) URL from a PEM-encoded X.509 certificate.

If multiple CRL URLs are present, only the first one is returned.

Parameters

certificatePem

string

PEM-encoded X.509 certificate.

Returns

string

The first CRL URL if available; otherwise null if the extension is missing or contains no URLs.