Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 (中文) » SQL Anywhere 服务器 - 数据库管理 » 用户和数据库安全 » 传送层安全 » SQL Anywhere 客户端/服务器通信加密 » 将客户端应用程序配置为使用传送层安全性

 

建立使用传送层安全的客户端连接

要将客户端应用程序设置为使用传送层安全,请在您的连接字符串中使用 Encryption [ENC] 连接参数。连接字符串采用以下格式(必须将其全部写在一行上):

Encryption=tls(
 [ fips={ y | n }; ]
   trusted_certificates=public-certificate
 [ certificate_company=organization; ]
 [ certificate_name=common-name; ]
 [ certificate_unit=organization-unit ] )
  • public-certificate   是包含一个或多个受信任证书的文件的路径和文件名。如果您使用经 FIPS 认证的 RSA 加密,则必须使用 RSA 生成证书。

  • organization   只有当证书的 [组织] 字段与此值相匹配时,才强制客户端接受服务器证书。

  • common-name   只有当证书的 [公用名] 字段与此值相匹配时,才强制客户端接受服务器证书。

  • organization-unit   只有当证书的 [组织单位] 字段与此值相匹配时,才强制客户端接受服务器证书。

 另请参见
 示例