Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8321519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:02:58+00:00 2026-06-08T23:02:58+00:00

I have a scenario where a TcpListner acts as proxy between client and server.

  • 0

I have a scenario where a TcpListner acts as proxy between client and server. The proxy needs to log all internet traffic. SSL encrypt all the html stuff.

Can I grab the key from the stream to the decrypt the SSL stuff ?
If not, i can act as an SSL server. But where is the entry point? When the
server tell the client to use ssl ? I can not even see the html text just the headers
by encoding the stream from the server to ASCII.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:02:59+00:00Added an answer on June 8, 2026 at 11:02 pm

    SSL is intended to be secure against man-in-the-middle attacks, hence you will not be able to extract the key to decrypt the traffic. If your application is acting as a proxy, the only cleartext that you’re likely to receive will be the initial CONNECT request.

    One option would be to do what a number of commercial firewalls do to permit SSL inspection, which is to impersonate the remote side of the connection to the client, establishing a separate SSL stream to each. To do this you’ll need to do a number of things, and it will only work if you are able to install your own trusted root certificate on all clients that will use your proxy (e.g. using Windows group policy). If you can’t do this, you might as well give up, as it makes what you’re attempting to do effectively impossible.

    1. Determine the name of the server that the client is connecting to from the CONNECT request.
    2. Generate a certificate with the CN set to the server name established in step 1, signed by a root certificate trusted by the client.
    3. Establish a network connection to the destination host, and using the .NET SslStream to wrap the connection and call AuthenticateAsClient(...).
    4. Again using SslStream, wrap the client’s incoming network stream, and call AuthenticateAsServer() using the certificate generated in step 2.
    5. Forward data between the two connections, logging it as you require.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario where I have one thread that loops between waiting and
I have a scenario where data needs to be imported from a CSV file
We have scenario: SQL Server 2008 we have replication on the db we have
I have scenario, in which I am getting images using Web Service and all
I have this scenario: WServer 2008, SQL Server 2005, MS Analysis services (SSAS), ISS7
I have a scenario where a NSURLConnection is in progress. As we all know,
Have a scenario with a client's new crm where they have suppliers and clients
we have a scenario here where we need to delete all the duplicate rows
I have scenario where I need to host a web service (WCF) on Azure
I have scenario, I have two update panels on the page (both have update

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.