This is our old Q&A Site. Please post any new questions and answers at

I'm trying to decrypt some TLSv1 packages, but I don't have the server private key. How can I obtain the private key?

Here are some images:

Client Hello:

Server Hello:

Client Handshake:

Server Handshake:

asked 17 Apr '16, 02:34

Xenocyde's gravatar image

accept rate: 0%

edited 18 Apr '16, 06:45

sindy's gravatar image


You get the server private key by asking the server administrator to give it to you. You can't get it from the packets. If you could, this would not be a secure method of communication.

permanent link

answered 17 Apr '16, 08:16

Jim%20Aragon's gravatar image

Jim Aragon
accept rate: 24%

Are we absolutely sure there's isn't any other way to obtain the private key?

(17 Apr '16, 09:25) Xenocyde

Yes, and if you're not able to get the private key from the server administrator, then it means they don't want you to have the key and you are not authorized to decrypt the traffic.

(17 Apr '16, 10:38) Jim Aragon

Another option is that you may be able to persuade the client application, e.g. by configuration or recompiling, to give up the session key or pre-master secret.

See this section of the Wireshark Wiki page on SSL.

(18 Apr '16, 03:05) grahamb ♦

@Xenocyde: The server key would not help you at all, as the server suggests to use a Diffie Hellman cipher, so the only thing that helps is what @grahamb sugested.

BTW: What is your problem? Maybe there are other way to achieve analyze a problem, like a SSL MITM Proxy.

(19 Apr '16, 09:21) Kurt Knochner ♦

@Kurt Knochner: I need to see the code sent by the client and by the server to analyze a few instructions. So the SSL MITM Proxy might help me here. Thanks for the info.

(19 Apr '16, 09:28) Xenocyde
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 17 Apr '16, 02:34

question was seen: 2,264 times

last updated: 19 Apr '16, 09:28

p​o​w​e​r​e​d by O​S​Q​A