Generic TLS for ruby