Revert "Remove SSL workaround"

This partially reverts commit 35c5b9da4e89a4452f44cc1634d9c062267a4074.