The remote certificate is invalid according to the validation procedure.

2 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Jan 2018

    Posted 29 Jan Link to this post

    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!

     

  2. Alexander
    Admin
    Alexander avatar
    336 posts

    Posted 01 Feb Link to this post

    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
Back to Top