Added support to create the base64 encoded public key from key exchange