Using https by default and validating certificate