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