Fix for [HTTPCLIENT-613] https should check CN of x509 cert Contributed by Julius Davies <juliusdavies at gmail.com> Reviewed by Oleg Kalnichevski