ssl for threaded worker