大网数据广告活动
服务器运维问答

Using wireshark to determine which RSA PRIVATE KEY SSL conversation?

· 52CE 我爱测

Situation I have a client VM and server VM communicating using SSL. The client VM runs wireshark capture using CLI Wireshark GUI is running locally on a different machine. Steps As USER on the client VM I initiated a RESTful HTTP…

问题原文

原帖链接 · Dave · CC BY-SA 3.0

Situation

I have a client VM and server VM communicating using SSL. The client VM runs wireshark capture using CLI

Wireshark GUI is running locally on a different machine.

Steps

As USER on the client VM I initiated a RESTful HTTP session over SSL using python scripts.

I have captured the conversation using wireshark and now want to de-encrypt the application data.

I copied the captured file local machine and now want to analyse the application data.

I have ssh access only to the client VM and following the steps on https://wiki.wireshark.org/SSL leads me to believe that I should

1) Copy the contents of /home/USER./ssh/id_rsa on the client VM to the local machine.
2) Point to the file in the SSL preferences RSA keyfiles list. 3) In same SSL preferences configure IP address, port

Expected Result

I then expected to be able to view the encrpted data but I still see

Actual Result

My theory is that I am using the incorrect RSA_PRIVATE_KEY , so I want to confirm which key is used in the SSL session.

If the RSA PRIVATE KEY is correct what else should I check?

已采纳解答

原帖链接 · yagmoth555 · CC BY-SA 3.0

You need the actual private key of the remote endpoint, where HTTP session over SSL connect to.

A good example there: How to Decrypt SSL and TLS Traffic Using Wireshark

1 - Start Wireshark and open the network capture (encrypted SSL should be similar to the following screen shot).

2 - From the menu, go to Edit > Preferences.

3 - Expand Protocols in the Preferences window.

4 - Scroll down and select SSL. Type a location and file name for a debug file in the SSL debug file field.

5 - In the RSA keys list field click Edit > New and add the following information:

Where:

IP address: is the IP Address of the server/appliance with the private key

Port: is usually 443 for SSL/TLS

Protocol: is usually HTTP

Key FIle: is the location and file name of the private key. This is the key used in the certificate key pair of SSL virtual server for which you are trying to decrypt the traffic. All the SSL key and certificates are saved on NetScaler appliance in config/ssl directory. To use the key to decrypt the traffic it should be saved to the local disk and this path should be specified while decrypting the traffic.

Password: enter the password that you assigned while exporting the server certificate.

6 - Decrypt the SSL traffic (decrypted SSL should be similar to the following screen shot).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-06-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。