Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TLS on SBI #9

Open
calee0219 opened this issue Jun 14, 2020 · 3 comments
Open

Support TLS on SBI #9

calee0219 opened this issue Jun 14, 2020 · 3 comments

Comments

@calee0219
Copy link
Contributor

For wireshark, it provide an option to decode TLS on HTTP2 if we provide the key file.
https://github.com/free5gc/free5gc/wiki/Trouble_Shooting#6-decode-http2-packet-in-wireshark

I'm wondering if 5g-trace-visualizer is consider to support decoding encrypting SBI maybe using this feature in wireshark.

@jkolom
Copy link
Collaborator

jkolom commented Jun 15, 2020

If it can be done via tshark, then it would be easy to implement. The applicaiton does not parse the packets, rather generates a call to tshark, which dissects the packets and generates an XML file (PDML file) that is used for creating the diagram.
If you can send me an example including traces and the tshark command you use, it can be added. We did not have the issue (yet), so we did not need that yet.

@calee0219
Copy link
Contributor Author

Here is the TLS version pcap file and keylog
free5gc_tls.zip
keylog.zip

I think tshark also support decrypt TLS as following link.
https://minnmyatsoe.com/2016/01/26/using-tshark-to-decrypt-ssl-tls-packets/
But I didn't test it, so I'm not for sure.

@jkolom
Copy link
Collaborator

jkolom commented Jun 15, 2020

From what I can see, the application would not have enough information to do anything with those logs (to what connection should that apply to?). The website you pointed to also uses the certificates additionally to the logged secrets.

For me, it would be quite difficult to implement a solution given that I cannot test it and I have no idea how to do this for a trace containing multiple TLS connections.

What I can offer you is that if you can provide me a working decoding using tshark, I can add those steps to the application. The application is in the end little more than an automated call to tshark and then to PlantUML, so that should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants