Sockets secure implementations

Rebased on `master`.
nit: an even better test url would be: https://httpbin.org/get