Add an argument to specify if we have to accept invalid certificates