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.
For more information about specifying the HTTPS protocol for your UltraLite interface, see Network protocol options for UltraLite synchronization streams.
For more information about the tls_type synchronization parameter, see tls_type.
There are two ways to specify trusted root certificates:
When creating the UltraLite database See UltraLite Create Database utility (ulcreate), or UltraLite Initialize Database utility (ulinit).
Using the trusted_certificates protocol option For details, see Step 3 of this procedure. This option is not available on Palm OS.
Specify the TCP/IP or HTTPS protocol for synchronization. The keyword for secure TCP/IP is tls.
The following example is in C/C++ UltraLite. To specify tls, change https to tls.
auto ul_synch_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"; ... |
Specify TCP/IP or HTTPS protocol options.
The following example is in C/C++ UltraLite. To specify tls, change https to tls.
auto ul_synch_info synch_info; ... synch_info.stream = "https"; synch_info.stream_parms = TEXT( "port=9999; certificate_company=Sybase, Inc.; certificate_unit=IAS; certificate_name=MobiLink"); |
The certificate_company, certificate_unit, and certificate_name protocol options are used to verify certificate fields.
See Verifying certificate fields.
You can also specify the trusted_certificates HTTPS protocol option, which overrides any trusted certificate information embedded in the UltraLite database (Step 1 of this procedure). The trusted_certificates protocol option is not available on Palm OS.
auto ul_synch_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"); |
For more information about HTTPS options, see Network protocol options for UltraLite synchronization streams.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |