private function _hasEqualPublicKey(Certificate $cert): bool
    {
        $kid1 = $this->_tbsCertificate->subjectPublicKeyInfo()->keyIdentifier();
        $kid2 = $cert->_tbsCertificate->subjectPublicKeyInfo()->keyIdentifier();
        return $kid1 == $kid2;
    }
private function _hasEqualPublicKey(Certificate $cert): bool
    {
        $kid1 = $this->_tbsCertificate->subjectPublicKeyInfo()->keyIdentifier();
        $kid2 = $cert->_tbsCertificate->subjectPublicKeyInfo()->keyIdentifier();
        return $kid1 == $kid2;
    }
private function _hasEqualPublicKey ( Certificate $ cert ) : bool { $ kid1 = $ this -> _tbsCertificate -> subjectPublicKeyInfo ( ) -> keyIdentifier ( ) ; $ kid2 = $ cert -> _tbsCertificate -> subjectPublicKeyInfo ( ) -> keyIdentifier ( ) ; return $ kid1 == $ kid2 ; }
Check whether certificate has public key equal to another.

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