As a workaround you could add a handler to the ServicePointManager
‘s ServerCertificateValidationCallback
on the client side:
System.Net.ServicePointManager.ServerCertificateValidationCallback += (se, cert, chain, sslerror) => { return true; };
but be aware that this is not a good practice as it completely ignores the server certificate and tells the service point manager that whatever certificate is fine which can seriously compromise client security. You could refine this and do some custom checking (for certificate name, hash etc). at least you can circumvent problems during development when using test certificates.
Related Posts:
- What is WCF? and what can it do?
- Could not establish secure channel for SSL/TLS with authority ‘*’
- A certificate chain could not be built to a trusted root authority
- What’s the difference between .NET Core, .NET Framework, and Xamarin?
- What is a singleton in C#?
- ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine
- What is w3wp.exe?
- My C# application is returning 0xE0434352 to Windows Task Scheduler but it is not crashing
- C# Set collection?
- Difference between Delphi and Delphi.NET
- Where/how can I download (and install) the Microsoft.Jet.OLEDB.4.0 for Windows 8, 64 bit?
- Convert Enum to String
- Windows Application has stopped working :: Event Name CLR20r3
- Access to the path is denied
- Why is Dictionary preferred over Hashtable in C#?
- What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?
- Embed a System.String in XAML
- What’s the difference between struct and class in .NET?
- The HTTP request was forbidden with client authentication scheme ‘Anonymous’. The remote server returned an error: (403) Forbidden
- Does anyone still use [goto] in C# and if so why?
- How does the “Using” statement translate from C# to VB?
- Where Is Machine.Config?
- Why does .Net Socket.Disconnect take two minutes?
- ClickOnce runtime DFSVC.EXE
- “An attempt was made to load a program with an incorrect format” even when the platforms are the same
- What is the best way to parse html in C#? [closed]
- Best C# API to create PDF
- C# cannot convert method to non delegate type
- What is the difference between const and readonly in C#?
- SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904)
- Cannot send a content-body with this verb-type
- Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction
- Pass Method as Parameter using C#
- Nuget connection attempt failed “Unable to load the service index for source”
- Cannot access a disposed object – How to fix?
- HashSet vs. List performance
- Cannot access a disposed object – How to fix?
- ArrayList vs List<> in C#
- How to access Session variables and set them in javascript?
- What’s the @ in front of a string in C#?
- How to solve ‘…is a ‘type’, which is not valid in the given context’? (C#)
- Could not load file or assembly App_Web_ * with a precompiled ASP.NET website project
- How should I cast in VB.NET?
- Calling the base constructor in C#
- Warning: Found conflicts between different versions of the same dependent assembly
- Best way to repeat a character in C#
- Connection string using Windows Authentication
- What is the purpose ApplicationDbContext Class in (under IdentityModels.cs file) ASP.NET MVC 5?
- How to empty a list in C#?
- What is The difference between ListBox and ListView
- SQLite equivalent to ISNULL(), NVL(), IFNULL() or COALESCE()
- windows could not start service on local computer error 5 access is denied
- Cannot attach the file *.mdf as database
- How to open an Excel file in C#?
- What is a method group in C#?
- How can I download a file with batch file without using any external tools?
- How do I save a stream to a file in C#?
- The remote server returned an error: (405) Method Not Allowed. WCF REST Service
- Print Pdf in C#
- Can a Byte[] Array be written to a file in C#?
- Entity Framework vs LINQ to SQL
- .NET Framework 4.6 or a later update is already installed on this computer
- Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154
- How do I find the PublicKeyToken for a particular dll?
- Could not find any resources appropriate for the specified culture or the neutral culture
- Consider app.config remapping of assembly with no app.config mapping
- What is a “first chance exception”?
- What is the difference between String and string in C#?
- Creating a List of Lists in C#
- C# int to byte[]
- INQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
- No connection could be made because the target machine actively refused it?
- What does a lock statement do under the hood?
- Net 2.0 Framework Service Pack 2 Issue
- How to generate a self-signed SSL certificate using OpenSSL?
- Convert .pem to .crt and .key
- Verify return code: 20 when testing OpenSSL
- Invalid URI: The format of the URI could not be determined
- Why did I get the compile error “Use of unassigned local variable”?
- Reading CSV file and storing values into an array
- WCFTestClient The HTTP request is unauthorized with client authentication scheme ‘Anonymous’
- OpenSSL: unable to verify the first certificate for Experian URL
- SSL CA cert (path? access rights?)
- An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
- How to split() a delimited string to a List
- Remove element of a regular array
- How can I know if a process is running?
- .NET String.Format() to add commas in thousands place for a number
- Convert .pfx to .cer
- .NET Core vs Mono
- How to enumerate an enum
- Using the Importer on an IIS Server
- All links in my site start with localhost?
- Why are images not displaying?
- Multisite sub-directories IIS 7.5 change media/uploads location
- IIRF + IIS 6 + WordPress does not return 404 error
- Newbie: Multiple WP sites on Windwos 2012 IIS
- Graphics and Formatting Not Loading in WordPress on IIS
- Permalinks setting raises 500.0 error
- Best way to redirect all HTTP to HTTPS in IIS