Get session key from SSL/TLS connection using NSStream

2014-03-26 Thread Bastian Hafer
Hey everyone, I am trying to get the session key of an existing, working and tested connection secured via SSL/TLS. The connection is set up using first CFReadStream and CFWriteStream then casted to NSInputStream and NSOutputStream as common. Before I open them I set the properties and values

Re: Get session key from SSL/TLS connection using NSStream

2014-03-26 Thread Roland King
I'm pretty sure the answer here is no. I can think of nothing which exposes that session key, I can believe that it's something an API would not lightly expose and I do wonder what you could possibly need it for, especially on iOS, I can almost think of ways to use it on OSX, almost, but on iOS

Re: Get session key from SSL/TLS connection using NSStream

2014-03-26 Thread Jens Alfke
On Mar 26, 2014, at 3:30 AM, Bastian Hafer bastian.ha...@googlemail.com wrote: Now, when the connection is established and working, is there any way to get hands on the session key that is negotiated in the SSL/TLS handshake protocol? I need this key for my app. Maybe via the socket, the