Type library
Revision 2014.2419
Keywords openssl, security
Sample code Sample code
See also Marketplace
Availability Pro, Enterprise


The OpenSSL plugin provides access to the OpenSSL library, as exposed by George Zhao's lua-openssl

OpenSSL's documentation is available from


The OpenSSL plugin allows you to do secure socket communication in Lua using luasec. This wraps your insecure protocol in SSL. Please refer to the samples in the Corona Labs GitHub repository. The luasec sample explains how to create the server-side of the secure connection.

Note that HTTPS requests are done much more easily using network.request() - web documents shouldn’t be requested using luasec.


The following platforms are supported:


local openssl = require "plugin.openssl"

Project Settings


When you build using the Corona Simulator, the server automatically takes care of integrating the plugin into your project.

All you need to do is add an entry into a plugins table of your build.settings. The following is an example of a minimal build.settings file:

settings =
    plugins =
        -- key is the name passed to Lua's 'require()'
        ["plugin.openssl"] =
            -- required
            publisherId = "com.coronalabs",

Sample Code

See the sample code provided with the Corona SDK.


More support is available from the Corona Labs team: