Using transport-layer security for web services

StepsSetting up transport-layer security for web services

  1. Create digital certificates.

    Create both public and server certificates. Public certificates (which can be Certificate Authority certificates) are distributed to browsers or web clients. Server certificates are stored securely with your Adaptive Server Anywhere web server. See “Creating the certificates”.

  2. Start the web server with transport-layer security.

    Use the -xs database server option to specify HTTPS, the server certificate, and the password to protect the private key. For syntax, see “Starting the database server”in the Sybase IQ Utility Guide.

Example

The following steps show how to use a certificate with HTTPS synchronization.

  1. Obtain an RSA server certificate file. For example, obtain a file called server_cert.crt with password pwd.

  2. Obtain a public RSA certificate file. For example, obtain a file called client_cert.crt.

  3. On the start_asiq command line, include the following:

    -x https(certificate=server_cert.crt;certificate_password=pwd)
    

    Instead of exposing the password in the command line, you can use the dbfhide utility. For more information, see “File Hiding utility (dbfhide)” in the Sybase IQ Utility Guide.

  4. In the synchronization user or the synchronization subscription, use the following type and address:

    ... TYPE https ADDRESS "trusted_certificates=client_cert.crt"