I have asmx web service in .Net framework 4.6 that consumes https web service. Here is the below code I have before calling the service - System.Net.ServicePointManager.Security