Last post Feb 04, 2016 02:37 AM by Yohann Lu
Nov 26, 2015 05:52 PM|seamus1982|LINK
I am running an ssl cert without a ssl cert. There is an internal error. Could this be the reason? It works fine on my local computer. Do I have to set something in the web.config or something?
Nov 26, 2015 06:01 PM|PatriceSc|LINK
Of course, you are free to not use SSL if you don't want to (unless for example your company configured IIS so that SSL is absolutely required). To start with, what is the EXACT error you have. It should greatly help to understand what happens...
If you have an http 500 error, you have a server side exception that should be written in the Windows Event Log if you don't handle them another way.
Feb 04, 2016 02:37 AM|Yohann Lu|LINK
reply: Hi seamus1982,
As PatriceSc said, SSL is required while configuring IIS. If you could provide error message, it might be easier for us to help you.
The following tutorial about how to configure the Web API certificate for your reference.
Step 1: Create your certificate and configure IIS to use yourself signed certificates with your application, including IIS client certificate mapping authentication. You can refer the following tutorial:
Step 2: In order for HttpClient to be able to use the certificate, we need to create an instance of HttpClientHandler.
Step 3: You should add a delegating handler to handle certificate validation (API)
Step 4: Add the handler instance to global configuration object.
More information about Client certificate authentication in ASP.NET Web API in the below: