private function _hasEqualSubject(Certificate $cert): bool
    {
        $dn1 = $this->_tbsCertificate->subject();
        $dn2 = $cert->_tbsCertificate->subject();
        return $dn1->equals($dn2);
    }
private function _hasEqualSubject(Certificate $cert): bool
    {
        $dn1 = $this->_tbsCertificate->subject();
        $dn2 = $cert->_tbsCertificate->subject();
        return $dn1->equals($dn2);
    }
private function _hasEqualSubject ( Certificate $ cert ) : bool { $ dn1 = $ this -> _tbsCertificate -> subject ( ) ; $ dn2 = $ cert -> _tbsCertificate -> subject ( ) ; return $ dn1 -> equals ( $ dn2 ) ; }
Check whether certificate has subject equal to another.

@param Certificate $cert
@return bool
Check whether certificate has subject equal to another .