private function formatKey($certData)
    {
        return X509Certificate::PEM_HEADER .
            PHP_EOL .
            // Chunk it in 64 character bytes
            chunk_split($certData, 64, PHP_EOL) .
            X509Certificate::PEM_FOOTER .
            PHP_EOL;
    }
private function formatKey($certData)
    {
        return X509Certificate::PEM_HEADER .
            PHP_EOL .
            // Chunk it in 64 character bytes
            chunk_split($certData, 64, PHP_EOL) .
            X509Certificate::PEM_FOOTER .
            PHP_EOL;
    }
private function formatKey ( $ certData ) { return X509Certificate :: PEM_HEADER . PHP_EOL . // Chunk it in 64 character bytes chunk_split ( $ certData , 64 , PHP_EOL ) . X509Certificate :: PEM_FOOTER . PHP_EOL ; }
Given the 'certData' string, turn it back into a proper PEM encoded certificate.

@param string $certData
@return string
Given the certData string turn it back into a proper PEM encoded certificate .