Init the ssl library in the backend

Also add some comments since this is mildly convoluted.