Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定要用于端对端加密的密钥交换的非对称算法。
e2ee_type= { rsa | ecc }
TCPIP、TLS、HTTP、HTTPS
RSA
必须为 rsa 或 ecc,并且必须与服务器上指定的值相匹配。
若要使端对端加密生效,则需要使用 e2ee_public_key 选项。
有关如何设置 dbmlsync 网络协议选项的信息,请参见CommunicationAddress (adr) 扩展选项。
有关如何设置 UltraLite 网络协议选项的信息,请参见UltraLite 同步流的网络协议选项。
以下示例显示 UltraLite 客户端的端对端加密:
info.stream = "https"; info.stream_parms = "tls_type=rsa;trusted_certificate=rsaroot.crt;e2ee_type=rsa;e2ee_public_key=rsapublic.pem"