19992015 Ericsson AB. All Rights Reserved. The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ssl ssl_app.sgml
ssl The ssl application provides secure communication over sockets.
DEPENDENCIES

The ssl application uses the public_key and crypto application to handle public keys and encryption, hence these applications must be loaded for the ssl application to work. In an embedded environment this means they must be started with application:start/[1,2] before the ssl application is started.

CONFIGURATION

The application environment configuration parameters in this section are defined for the ssl application. For more information about configuration parameters, see the application(3) manual page in kernel.

The environment parameters can be set on the command line, for example:

erl -ssl protocol_version "['tlsv1.2', 'tlsv1.1']"

ssl:protocol() ]]>.

Protocol supported by started clients and servers. If this option is not set, it defaults to all protocols currently supported by the ssl application. This option can be overridden by the version option to ssl:connect/[2,3] and ssl:listen/2.

]]>

Lifetime of the session data in seconds.

]]>

Name of the session cache callback module that implements the ssl_session_cache_api behavior. Defaults to ssl_session_cache.erl.

]]>

List of extra user-defined arguments to the init function in the session cache callback module. Defaults to [].

]]>

Number of milliseconds between PEM cache validations.

ssl:clear_pem_cache/0
ERROR LOGGER AND EVENT HANDLERS

The ssl applications uses the default OTP error logger to log unexpected errors and TLS alerts. The logging of TLS alerts may be turned off with the log_alert option.

SEE ALSO

application(3)