public function registerPublicKeyFromString($publicKeyString)
    {
        $keyResource = openssl_pkey_get_public($publicKeyString);

        $modulus = $this->getModulus($keyResource);
        $publicKey = new OpenSslRsaKey($modulus, $publicKeyString);

        return $this->storeKeyPair($publicKey, null, false);
    }
public function registerPublicKeyFromString($publicKeyString)
    {
        $keyResource = openssl_pkey_get_public($publicKeyString);

        $modulus = $this->getModulus($keyResource);
        $publicKey = new OpenSslRsaKey($modulus, $publicKeyString);

        return $this->storeKeyPair($publicKey, null, false);
    }
public function registerPublicKeyFromString ( $ publicKeyString ) { $ keyResource = openssl_pkey_get_public ( $ publicKeyString ) ; $ modulus = $ this -> getModulus ( $ keyResource ) ; $ publicKey = new OpenSslRsaKey ( $ modulus , $ publicKeyString ) ; return $ this -> storeKeyPair ( $ publicKey , null , false ) ; }
Adds the specified public key to the wallet and returns a fingerprint to refer to it.
This is helpful if you have not private key and want to use this key only to
verify incoming data.

@param string $publicKeyString The public key in its string representation
@return string The RSA public key fingerprint for reference
Adds the specified public key to the wallet and returns a fingerprint to refer to it . This is helpful if you have not private key and want to use this key only to verify incoming data .