# Configure SSL

A client connecting to an EMS server can configure SSL characteristics in the following ways:

- Create a connection factory that specifies the appropriate SSL parameters and use JNDI to lookup the connection factory. The server URL in the connection factory must specify the SSL protocol, and the factory must specify appropriate SSL parameters.

  A preconfigured connection factory is the preferred mechanism in many situations. See Create Connection Factories for Secure Connections and Perform Secure Lookups for details on how to create a connection factory with SSL parameters in EMS.

- Dynamically create a connection factory, as described in Dynamically Creating Connection Factories and set the global SSL parameters locally using the TibjmsSSL class (Java), `tibemsSSLParams` type (C), or EMSSSL class (C#).

Specifying any SSL parameters within a connection factory causes all global SSL parameters set with the `TibjmsSSL` class, `tibemsSSLParams` type or `EMSSSL` class to be ignored.

Copyright © Cloud Software Group, Inc. All rights reserved.