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);
    }