Overhauled SSL configuration, more secure