22 return !!preg_match(self::CERTIFICATE_PATTERN,
$certificate);
32 return "-----BEGIN CERTIFICATE-----\n"
33 . chunk_split($X509CertificateContents, 64)
34 .
"-----END CERTIFICATE-----\n";
An exception for terminatinating execution or to throw for unit testing.
Collection of Utility functions specifically for certificates.
static hasValidStructure($certificate)
static convertToCertificate($X509CertificateContents)
const CERTIFICATE_PATTERN
The pattern that the contents of a certificate should adhere to.
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate