Reproduce and fix SSL failure

This PR reproduces and fixes SSL failure.

fix is temporary, until proper solution is done.