Fixing SSL stuff