This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Decrypt SIP messages on IP phone logged in to lync

0

Hi ,

I have to decrypt the SIP messages on wire shark. I have a phone which is logged in to Lync server and is sending packets when there is communication between the phone and server. Please tell me how i can decrypt the messages. I have a .pem file and have given the serverip,port,sip,<file locatoin=""> in preferences (SSL).

Thanks in advance, SL.

asked 03 Jul '13, 23:05

Srinivas%20Lolla's gravatar image

Srinivas Lolla
16114
accept rate: 0%


One Answer:

2

For SSl decryption to work, you need the private key from the server. A .pem file is usually a certificate, not a private key. Does your .pem file start with something like:

-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCoi1wPzMODtqZW9Yvun0pOC50PPmmtJQbxyHbjMxhARLN9N8aK

If not, it is either not the private key or it is not in the correct format.

answered 04 Jul '13, 01:40

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

My Pem file is starts like this ::

Bag Attributes Microsoft Local Key set: <no values=""> localKeyID: 01 00 00 00 friendlyName: le-e965d996-09b2-4b52-8e44-3d62e03b52aa Microsoft CSP Name: Microsoft RSA SChannel Cryptographic Provider Key Attributes X509v3 Key Usage: 10 -----BEGIN ENCRYPTED PRIVATE KEY----- MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI9Fwi9ruu9SICAggA MBQGCCqGSIb3DQMHBAi30XOn+iUA9ASCBMhza5Nq8lpCluyOc2uz1cx00DWpdMmb TkMRw6Wsx3FfV8NexDYWZ/Zy4efx5Qq1+vx4+Oi1frhlb7AR5+hiZgV6l8pFDOl+

(04 Jul '13, 02:17) Srinivas Lolla

This is a PKCS12 formatted private key with a passphrase. Wireshark is able to read the key if you provide the passphrase too in the SSL RSA Keys list.

(04 Jul '13, 03:52) SYN-bit ♦♦