Added SSL authentication support.