I\'m trying to bypass https certificate validation only to our own testing environment (multiple machines), while trying to keep certificate validation for all the other connect
I'd like to propose you a more "kosher" way to do it (from the point of information security):
This will allow you to work with your service without creating "backdoors" in code. This also will allow you to limit test access to test environment only while having same code both on Test and Prod instances.