Make connection secure