SSLSocks is a TLS/SSL tunnel using stunnel for Android. This allows you to connect other applications (e.g. SSH, OpenVPN, Shadowsocks) through a local TCP port to a remote TLS proxy (e.g. a stunnel server).
It is simply a wrapper for stunnel (https://www.stunnel.org/) and supports most of the features and configuration options of stunnel, including:
– Server certificate validation
– Support for TLS-PSK (pre-shared key) and client certificates for access control
– SNI (Server Name Indication) support for multiple servers on the same IP
– IPv6 support
SSLSocks can also be used in the reverse direction, as a TLS server, if desired.
Source code: https://github.com/comp500/SSLSocks/