This is a migrated thread and some comments may be shown as answers.

The remote certificate is invalid according to the validation procedure.

1 Answer 707 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 29 Jan 2018, 02:26 PM

I set my app to proxy traffic through fiddler by adding the following in web.config

  <system.net>

    <defaultProxy enabled="true">
      <proxy proxyaddress="http://127.0.0.1:8888" />
    </defaultProxy>
  </system.net>

As soon as I've done that, I get the following error

The remote certificate is invalid according to the validation

...specifically on a connection to windows azure service bus - but don't think that's relevant to this question

 

I've re-generated the certs, exported root cert, trusted it etc...

Just can't get past this error!

 

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 01 Feb 2018, 05:19 PM
Hello,

It seems that your application does not trust Fiddler's root certificate. Do you get the same result if you let your app to use the system proxy settings? This is done by specifying the following in your app.config:

<system.net>
  <defaultProxy enabled="true">
    <proxy usesystemdefault="true"/>
  </defaultProxy>
</system.net>

Also, you said "specifically on a connection to windows azure service bus". Does this mean that connections to other servers does not have this problem? Also, when you navigate some HTTPS site with the browser, do you get any "not secure website" messages?

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Windows
Asked by
Alex
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or