FiddlerCore: HTTP Tunnel Issue












0















I have an application, and I am trying to intercept its requests with FiddlerCore.



Using Fiddler, I see the requests as follows:





(HTTP CONNECT tunnel into HTTPS request)



When using FiddlerCore, I am only seeing the initial HTTP CONNECT tunnel, and the application is not requesting. after that, stating:




Failed to connect to server.




This is the code I'm using in the BeforeRequest method:



if (oSession.HTTPMethodIs("CONNECT"))
{
oSession["x-replywithtunnel"] = "FakeTunnel";
return;
}


And the output from the FiddlerCore program (upon running the application):



Output from the FiddlerCore program



The application is a Java application, which I had to create a keystore for using the FiddlerRoot certificate, and I am wondering if this is where the problem lies.










share|improve this question





























    0















    I have an application, and I am trying to intercept its requests with FiddlerCore.



    Using Fiddler, I see the requests as follows:





    (HTTP CONNECT tunnel into HTTPS request)



    When using FiddlerCore, I am only seeing the initial HTTP CONNECT tunnel, and the application is not requesting. after that, stating:




    Failed to connect to server.




    This is the code I'm using in the BeforeRequest method:



    if (oSession.HTTPMethodIs("CONNECT"))
    {
    oSession["x-replywithtunnel"] = "FakeTunnel";
    return;
    }


    And the output from the FiddlerCore program (upon running the application):



    Output from the FiddlerCore program



    The application is a Java application, which I had to create a keystore for using the FiddlerRoot certificate, and I am wondering if this is where the problem lies.










    share|improve this question



























      0












      0








      0








      I have an application, and I am trying to intercept its requests with FiddlerCore.



      Using Fiddler, I see the requests as follows:





      (HTTP CONNECT tunnel into HTTPS request)



      When using FiddlerCore, I am only seeing the initial HTTP CONNECT tunnel, and the application is not requesting. after that, stating:




      Failed to connect to server.




      This is the code I'm using in the BeforeRequest method:



      if (oSession.HTTPMethodIs("CONNECT"))
      {
      oSession["x-replywithtunnel"] = "FakeTunnel";
      return;
      }


      And the output from the FiddlerCore program (upon running the application):



      Output from the FiddlerCore program



      The application is a Java application, which I had to create a keystore for using the FiddlerRoot certificate, and I am wondering if this is where the problem lies.










      share|improve this question
















      I have an application, and I am trying to intercept its requests with FiddlerCore.



      Using Fiddler, I see the requests as follows:





      (HTTP CONNECT tunnel into HTTPS request)



      When using FiddlerCore, I am only seeing the initial HTTP CONNECT tunnel, and the application is not requesting. after that, stating:




      Failed to connect to server.




      This is the code I'm using in the BeforeRequest method:



      if (oSession.HTTPMethodIs("CONNECT"))
      {
      oSession["x-replywithtunnel"] = "FakeTunnel";
      return;
      }


      And the output from the FiddlerCore program (upon running the application):



      Output from the FiddlerCore program



      The application is a Java application, which I had to create a keystore for using the FiddlerRoot certificate, and I am wondering if this is where the problem lies.







      http https tunnel fiddler






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 12 '18 at 1:16









      Scott

      16.1k113990




      16.1k113990










      asked Jun 11 '18 at 23:18









      Tr33sTr33s

      13




      13






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Solution: Uses the FiddlerCore SSL certificate. FiddlerCore uses a different SSL certificate than Fiddler itself.






          share|improve this answer


























          • I’m not sure what the question is, and I’m doubly unsure how (whether) this answers it.  Did you figure out how to do what you wanted to do?  Did you determine that it is impossible to do what you wanted to do? … … … … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete; i.e., to make it more useful to the next person who has this problem and finds this page through a search engine.

            – Scott
            Feb 20 at 5:56













          • The issue is simply that Fiddler was able to decrypt SSL using the keystore, but the same keystore was not able to decrypt SSL within FiddlerCore. The reasoning is that FiddlerCore uses a different SSL certificate, so upon creating the keystore with the correct FiddlerCore certificate, it started working.

            – Tr33s
            Feb 20 at 18:21











          • Please edit your answer to describe what you needed to do to get it to work.

            – Scott
            Feb 20 at 18:53











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1330502%2ffiddlercore-http-tunnel-issue%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Solution: Uses the FiddlerCore SSL certificate. FiddlerCore uses a different SSL certificate than Fiddler itself.






          share|improve this answer


























          • I’m not sure what the question is, and I’m doubly unsure how (whether) this answers it.  Did you figure out how to do what you wanted to do?  Did you determine that it is impossible to do what you wanted to do? … … … … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete; i.e., to make it more useful to the next person who has this problem and finds this page through a search engine.

            – Scott
            Feb 20 at 5:56













          • The issue is simply that Fiddler was able to decrypt SSL using the keystore, but the same keystore was not able to decrypt SSL within FiddlerCore. The reasoning is that FiddlerCore uses a different SSL certificate, so upon creating the keystore with the correct FiddlerCore certificate, it started working.

            – Tr33s
            Feb 20 at 18:21











          • Please edit your answer to describe what you needed to do to get it to work.

            – Scott
            Feb 20 at 18:53
















          0














          Solution: Uses the FiddlerCore SSL certificate. FiddlerCore uses a different SSL certificate than Fiddler itself.






          share|improve this answer


























          • I’m not sure what the question is, and I’m doubly unsure how (whether) this answers it.  Did you figure out how to do what you wanted to do?  Did you determine that it is impossible to do what you wanted to do? … … … … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete; i.e., to make it more useful to the next person who has this problem and finds this page through a search engine.

            – Scott
            Feb 20 at 5:56













          • The issue is simply that Fiddler was able to decrypt SSL using the keystore, but the same keystore was not able to decrypt SSL within FiddlerCore. The reasoning is that FiddlerCore uses a different SSL certificate, so upon creating the keystore with the correct FiddlerCore certificate, it started working.

            – Tr33s
            Feb 20 at 18:21











          • Please edit your answer to describe what you needed to do to get it to work.

            – Scott
            Feb 20 at 18:53














          0












          0








          0







          Solution: Uses the FiddlerCore SSL certificate. FiddlerCore uses a different SSL certificate than Fiddler itself.






          share|improve this answer















          Solution: Uses the FiddlerCore SSL certificate. FiddlerCore uses a different SSL certificate than Fiddler itself.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 20 at 22:20

























          answered Feb 20 at 4:50









          Tr33sTr33s

          13




          13













          • I’m not sure what the question is, and I’m doubly unsure how (whether) this answers it.  Did you figure out how to do what you wanted to do?  Did you determine that it is impossible to do what you wanted to do? … … … … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete; i.e., to make it more useful to the next person who has this problem and finds this page through a search engine.

            – Scott
            Feb 20 at 5:56













          • The issue is simply that Fiddler was able to decrypt SSL using the keystore, but the same keystore was not able to decrypt SSL within FiddlerCore. The reasoning is that FiddlerCore uses a different SSL certificate, so upon creating the keystore with the correct FiddlerCore certificate, it started working.

            – Tr33s
            Feb 20 at 18:21











          • Please edit your answer to describe what you needed to do to get it to work.

            – Scott
            Feb 20 at 18:53



















          • I’m not sure what the question is, and I’m doubly unsure how (whether) this answers it.  Did you figure out how to do what you wanted to do?  Did you determine that it is impossible to do what you wanted to do? … … … … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete; i.e., to make it more useful to the next person who has this problem and finds this page through a search engine.

            – Scott
            Feb 20 at 5:56













          • The issue is simply that Fiddler was able to decrypt SSL using the keystore, but the same keystore was not able to decrypt SSL within FiddlerCore. The reasoning is that FiddlerCore uses a different SSL certificate, so upon creating the keystore with the correct FiddlerCore certificate, it started working.

            – Tr33s
            Feb 20 at 18:21











          • Please edit your answer to describe what you needed to do to get it to work.

            – Scott
            Feb 20 at 18:53

















          I’m not sure what the question is, and I’m doubly unsure how (whether) this answers it.  Did you figure out how to do what you wanted to do?  Did you determine that it is impossible to do what you wanted to do? … … … … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete; i.e., to make it more useful to the next person who has this problem and finds this page through a search engine.

          – Scott
          Feb 20 at 5:56







          I’m not sure what the question is, and I’m doubly unsure how (whether) this answers it.  Did you figure out how to do what you wanted to do?  Did you determine that it is impossible to do what you wanted to do? … … … … … … … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete; i.e., to make it more useful to the next person who has this problem and finds this page through a search engine.

          – Scott
          Feb 20 at 5:56















          The issue is simply that Fiddler was able to decrypt SSL using the keystore, but the same keystore was not able to decrypt SSL within FiddlerCore. The reasoning is that FiddlerCore uses a different SSL certificate, so upon creating the keystore with the correct FiddlerCore certificate, it started working.

          – Tr33s
          Feb 20 at 18:21





          The issue is simply that Fiddler was able to decrypt SSL using the keystore, but the same keystore was not able to decrypt SSL within FiddlerCore. The reasoning is that FiddlerCore uses a different SSL certificate, so upon creating the keystore with the correct FiddlerCore certificate, it started working.

          – Tr33s
          Feb 20 at 18:21













          Please edit your answer to describe what you needed to do to get it to work.

          – Scott
          Feb 20 at 18:53





          Please edit your answer to describe what you needed to do to get it to work.

          – Scott
          Feb 20 at 18:53


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1330502%2ffiddlercore-http-tunnel-issue%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How do I know what Microsoft account the skydrive app is syncing to?

          When does type information flow backwards in C++?

          Grease: Live!