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 Initialize Database utility (ulinit).
Using the trusted_certificate protocol option For details, see Step 3 of this procedure.
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_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"; ... |
Specify TCP/IP or HTTPS protocol options.
The following example is in C/C++ UltraLite. To specify tls, change https to tls.
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"); |
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_certificate HTTPS protocol option, which overrides any trusted certificate information embedded in the UltraLite database (Step 1 of this procedure).
auto ul_sync_info synch_info; ... synch_info.stream = "https"; synch_info.stream_parms = TEXT( "port=9999; trusted_certificate=\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.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |