Make tls work