Added option to disable certificate validation