breathalize
techie stuff I find along the way
  • Home
  • About
  • Useful Software

Decoding SSL traffic between a vCentre server and ESX host

Posted by mattr
January 26, 2010

I have been battling to try and find out where my HP servers store and provide serial numbers for vCentre in the Hardware Status plugin – to no avail I am sad to say so far. However while investigating I have had to work out how to use Wireshark to decode the SSL traffic between the vCentre and an ESX host, which is very useful for troubleshooting connectivity or other issues between a VC and ESX host, so I thought I would record the process for reference …

For Wireshark (Download the latest version here http://www.wireshark.org/download.html ) to be able to decode the SSL traffic between a VC and host, it needs the private key of the SSL certificate. To get this you will need to copy it from the host via an SCP client ..

The file you are looking for is rui.key and is located in /etc/vmware/ssl folder.

image

Once you have copied the file to your local machine you can fire up Wireshark and head to the Edit > Preferences.

In there under the Protocols menu on the left hand side, select SSL and you will see the following fields:

image

The RSA keys list field is where you tell Wireshark to look for the server source i.p. (the ESX host),port,protocol and location of the private key you want to use to decrypt.

In this example I am using the same key to decrypt both standard 443 and 5989 (Secure CIM) traffic – to do more that one you simply use a semi-colon to separate the string:

10.0.0.1,5989,wbem-https,c:\temp\rui.key;10.0.0.1,443,https,c:\temp\rui.key

The SSL debug file field allows Wireshark to write out how it is using the key to aid troubleshooting.

Once you have this you can load up a capture from your vCentre and look for some SSL traffic – you should see in the lower frame something like this:

image

As you expect the output is unreadable in the standard tab, but if you look at the Decrypted SSL data tab you should see the data magically become a lot more useful:

image

Wireshark helpfully will now also display a context menu called Follow SSL Stream, once it can decrypt the traffic, and will piece all the traffic it can find back together and pop up a window with the whole transaction in one place.

image

Once you get into the underlying transactions it is great to see what is going back and forth between the vCentre and hosts – I hope this helps you figure out whatever problem you may be having …

  •  
  •  
  •  
  •  
  •  
  •  
HP, vmwarekey, rui, ssl, wireshark

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

[...] for the communications that occur between an ESX/ESXi host and vCenter Server? This post discusses decoding SSL traffic with Wireshark so that you can see what’s [...]

Pingback by Virtualization Short Take #35 - blog.scottlowe.org - The weblog of an IT pro specializing in virtualization, storage, and servers on February 18, 2010 @ 6:38 am
Leave a comment

(required)

(required)







  • Popular Articles

    • HP SIM and ESXi Hardware Monitoring
    • Simple things
    • Decoding SSL traffic between a vCentre server and ESX host
    • Passed my VCP 4 Exam
    • Good Stuff @ London VMUG
  • Recent Posts

    • Veeam:Nothing to Report!
    • I came, I saw, Ipad
    • Mac Font Smoothing on Windows
    • HP SIM and ESXi Hardware Monitoring
    • Simple things
  • Recent Tweets

    • @vMackem ah ok .. Do you need a blogger pass to get into the blogger lounge as well? 2010/09/02
    • @vMackem how did you get on with vmware? are you coming to copenhagen? 2010/09/02
    • @vMackem if the 950 euro price doesn't come up you aren't using the same email as your vcp is registered to .. Had to ring them to sort it. 2010/09/01
    • RT @daniel_eason: @mattroblin @virtualportal that tax is a bit of a joke really <-- agreed - not even shown until the last screen either! 2010/09/01
    • @virtualportal cost of vmworld is £1000 after tax so look out for that .. Hotel(3 nights),flights and conf just over £1600. 2010/09/01
  • Blogroll

    • Gabes Virtual World (Gabe Van Zanten)
    • ICT Freak (Arne Fokkema)
    • J.F.V.I. (Chris Dearden)
    • LucD notes
    • NTPRO.NL (Eric Sloof)
    • PlanetVM (Tom Howarth)
    • powercli.co.uk
    • RTFM Education (Mike Laverick)
    • Scott Lowe
    • TechHead (Simon Seagrave)
    • Technodrone (Maish Saidel-Keesing)
    • The Slog (Simon Long)
    • TheSaffaGeek (Gregg Robertson)
    • Virtu-Al (Alan Renouf)
    • Virtual Geek (Chad Sakac)
    • Virtualised Reality (Barry Coombs)
    • Virtualization Evangelist (Jason Boche)
    • VM /ETC (Rich Brambley)
    • vmLover (Daniel Eason)
    • vReference (Forbes Guthrie)
    • Welcome to vSphere-land!
    • Yellow Bricks (Duncan Epping)
Copyright breathalize | Theme by DailyBlogTips