More tls options

Fix #1115