Fixed SSL context setup