LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2014, 02:07 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
what api do you recommend for decrypting TLS web payloads...


I am currently developing a program that uses libpcap and collects stats on domains and requests live as they come in on the wire. The data is mainly domain names, type of requests, and the urls.

In any case I want to be able to do this on port 443 SSL as well. What do people normally use in this case? openssl api?

-Tristan
 
Old 10-20-2014, 06:44 PM   #2
mina86
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 517

Rep: Reputation: 229Reputation: 229Reputation: 229
I would look at gnutls or openssl.
 
Old 10-21-2014, 10:13 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
You don't quite describe what is the relationship between this monitoring-program and the requests that, as you say, "come in on the wire." SSL conversations are encrypted on at least a per-conversation basis, each with a separate (asymmetric) crypto-key that is unique and which your monitor won't have. Therefore, all that you can do is simple traffic-analysis . . .

. . . unless you can engineer a monitoring interface into the applications that these incoming conversations are referring to. In other words, instead of trying to "eavesdrop," arrange for the recipient applications to write a record to some kind of log-file or pipe that you can listen to. They are already decrypting those conversations. Since you apparently do control the target applications that are being talked-to, you ought to be able to engineer some instrumentation capabilities into them.

Furthermore, when you take this approach, it becomes a simple matter of off-line statistical analysis: parsing values out of the raw-data datasets, taking random samples of the collected data, and generating various descriptive statistics. You collect the data timely, but you can analyze it at your leisure. Plenty of packages, including the open-source "R," can do this sort of thing easily.

Last edited by sundialsvcs; 10-21-2014 at 10:15 AM.
 
Old 10-23-2014, 09:08 AM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
Thanks for the comments. My program uses libpcap so encrypted traffic remains encrypted. Yea I would need each private key from each domain to decrypt it. I am just going to stick with non encrypted web traffic.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you blacklist known spam payloads? dugan LQ Suggestions & Feedback 3 09-05-2012 11:55 AM
How does ssl 3 and tls1 and tls 1.1 work with a web browser? deepsix Linux - Security 34 03-21-2011 02:02 PM
Pls. Recommend Web Application vinsky2002 Linux - Software 2 01-11-2005 01:53 AM
Web browsers - which one do you recommend ? RIOMX Linux - Software 15 11-11-2003 07:07 AM
recommend web hosting service? kodiakmook General 3 04-01-2002 05:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration