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 Server - Database Administration » User and database security » Transport-layer security » MobiLink client/server communications encryption » MobiLink client configuration to use transport-layer security

 

Configuring UltraLite clients to use transport-layer security

UltraLite clients can be configured to use transport-layer security over a TCP/IP or HTTPS protocol.

Prérequis

You must be using a TCP/IP or HTTPS protocol.

Contexte et remarques

MobiLink transport-layer security is an inherent feature of the MobiLink HTTPS protocol. If you use HTTPS and UltraLite clients, you can specify trusted certificates and certificate fields directly as network protocol options. There are two ways to specify trusted root certificates: using the UltraLite Initialize Database utility or the trusted_certificates protocol option.

 Task
  1. Specify the TCP/IP or HTTPS protocol for synchronization. The keyword for secure TCP/IP is tls.

  2. Specify TCP/IP or HTTPS protocol options.

    The certificate_company, certificate_unit, and certificate_name protocol options are used to verify certificate fields.

    You can also specify the trusted_certificates HTTPS protocol option, which overrides any trusted certificate information embedded in the UltraLite database.

Résultat

The UltraLite client is configured to use transport-layer security over either an HTTPS or TCP/IP protocol.

Exemple

The following example is in C/C++ UltraLite. To specify tls, change HTTPS to tls.

auto ul_sync_info synch_info;
conn.InitSynchInfo( &synch_info );
synch_info.user_name = UL_TEXT( "50" );
synch_info.version = UL_TEXT( "ul_default" );
...
synch_info.stream = "https";
...
auto ul_sync_info synch_info;
...
synch_info.stream = "https";
synch_info.stream_parms = TEXT(
      "port=9999;
       certificate_company=Sybase, Inc.;
       certificate_unit=IAS;
       certificate_name=MobiLink");
auto ul_sync_info synch_info;
...
synch_info.stream = "https";
synch_info.stream_parms = TEXT(
      "port=9999;
       trusted_certificates=\rsaroot.crt;
       certificate_company=Sybase, Inc.;
       certificate_unit=IAS;
       certificate_name=MobiLink");

 See also