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.
Specify the TCP/IP or HTTPS protocol for synchronization. The keyword for secure TCP/IP is tls.
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.
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"); |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |