src/CfdiUtils/PemPrivateKey/PemPrivateKey.php
public static function isPEM(string $keyContents): bool
    {
        if ('' === $keyContents) {
            return false;
        }

        $openSSL = new OpenSSL();
        return $openSSL->readPemContents($keyContents)->hasPrivateKey();
    }
public static function isPEM(string $keyContents): bool
    {
        if ('' === $keyContents) {
            return false;
        }

        $openSSL = new OpenSSL();
        return $openSSL->readPemContents($keyContents)->hasPrivateKey();
    }
public static function isPEM ( string $ keyContents ) : bool { if ( '' === $ keyContents ) { return false ; } $ openSSL = new OpenSSL ( ) ; return $ openSSL -> readPemContents ( $ keyContents ) -> hasPrivateKey ( ) ; }
Check if a string has an obvious signature of a PEM file
@param string $keyContents
@return bool
@deprecated 2.9.0 Replaced with OpenSSL utility
@see OpenSSL
Check if a string has an obvious signature of a PEM file