src/fkooman/X509/CertParser.php
public static function fromEncodedDer($encodedDerCert)
    {
        $pemCert = sprintf(
            '-----BEGIN CERTIFICATE-----%s-----END CERTIFICATE-----',
            PHP_EOL.wordwrap($encodedDerCert, 64, "\n", true).PHP_EOL
        );

        return new self($pemCert);
    }
public static function fromEncodedDer($encodedDerCert)
    {
        $pemCert = sprintf(
            '-----BEGIN CERTIFICATE-----%s-----END CERTIFICATE-----',
            PHP_EOL.wordwrap($encodedDerCert, 64, "\n", true).PHP_EOL
        );

        return new self($pemCert);
    }
public static function fromEncodedDer ( $ encodedDerCert ) { $ pemCert = sprintf ( '-----BEGIN CERTIFICATE-----%s-----END CERTIFICATE-----' , PHP_EOL . wordwrap ( $ encodedDerCert , 64 , "\n" , true ) . PHP_EOL ) ; return new self ( $ pemCert ) ; }
Create a new CertParser object from the Base 64 encoded DER, i.e. a
base64_encode of a binary string.
Create a new CertParser object from the Base 64 encoded DER i . e . a base64_encode of a binary string .