Hello,
Is your portal behind a load balance?
If so, and you setup the ssl on load balance and use http to portal system, this error may happen because protocol info is missing.
You can try to add wdisp/add_clientprotocol_header = 1 if you are using webdispatch or set a header field named ClientProtocol for reverse proxy like Apache.
Regards,
Donny