Use SSL when needed