Jump to content
Welcome to our new Citrix community!

nstrace capsslkeys question

Ben Higgins

Recommended Posts

I have an intermittent problem that I've been trying to solve by using nstrace with a specific filter and capsslkeys. One snag I'm hitting is that the SSL keys only seem to get written out after the trace is stopped, so I've had to resort to stopping the trace to collect the keys, then turn the trace back on again. I'm trying to find a way to have the SSL keys written at the same time as the packets so I can avoid having to stop and start the trace since there's potential that I'll miss traffic of interest when I do that. Is there an option to do that? Thanks!


Link to comment
Share on other sites

Option 1: configure the trace rollover and number of traces to be more frequent instead of 1 hours for 24 hours; make your traces smaller so that finalize output more frequently; I think the master keys should get then get create automatically without you having to start/stop so you can review afterwards.  


OPTION 2; use the other option for sslpain:  https://support.citrix.com/article/CTX215649  This was in gui in 11.0; not sure if still in gui or cli only. It is viewed as deprecated though.

This should capture a decrypted trace as opposed to one that needs the ssl master keys to be decrypted. So be careful with who gets access to the trace afterwards.


https://support.citrix.com/article/CTX135889 - capturing the ssl master keys is still preferred over sslplain.

Link to comment
Share on other sites



Thank you for your reply.


I previously tried out option 1 hoping that I'd have that result, but the behavior for keys remained the same (only one file, written out after the trace stopped).


Option 2 is something I've contemplated as well, but I've wanted to preserve the packets as they appeared on the wire (and it's deprecated as you noted).


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...