Fixes Issue #43 reported by Hsidhu

For us this was the fix that made everything work after the move to SSL.