initialize right mutex. use ssl if required