use tls instead of ssl because it is more secure