Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定用于同步的加密编码器。
ECC 加密和 FIPS 认证的加密需要单独的许可。所有高度加密技术受出口法规约束。
请参见单独授权的组件。
tls_type=cipher
RSA
此同步的所有通信都将使用指定编码器进行加密。编码器可以是以下各项之一:
ecc 用于椭圆曲线加密。
rsa 用于 RSA 加密。
有关如何设置 dbmlsync 网络协议选项的信息,请参见CommunicationAddress (adr) 扩展选项。
以下示例为 TCP/IP 协议设置了 RSA 加密。这需要在服务器和客户端上进行设置。每个命令都必须在一行中写入。
在服务器上,实现如下:
mlsrv12 -c "dsn=SQL Anywhere 12 Demo;uid=DBA;pwd=sql" -x tls( port=9999; tls_type=rsa; identity=c:\sa12\bin32\rsaserver.id; identity_password=test)
在 SQL Anywhere 客户端上,实现如下:
dbmlsync -e "CommunicationType=tls; CommunicationAddress= 'tls_type=rsa; trusted_certificates=\rsaroot.crt; certificate_name=RSA Server'"
对于以 C 或 C++ 语言编写的嵌入式 SQL UltraLite 应用程序,实现如下:
info.stream = "tls"; info.stream_parms = TEXT( "tls_type=rsa; trusted_certificates=\rsaroot.crt; certificate_name=RSA Server");