Example of using a PSK cipher suite

Asked by André Cruz on 2012-05-11

Hello.

I'm looking for an example of using a PSK cipher suite (PSK-AES256-CBC-SHA, for example) to establish an SSL connection between two peers that share a secret. I did not find any reference to "psk" in the source…

Is it supported? I specifically looked for some method in the Context to set the secret, but did not find any.

Hopefully this could be combined with set_tlsext_servername_callback() so that the server could look at the server name requested and set the corresponding secret in the returned Context.

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
pyOpenSSL Edit question
Assignee:
No assignee Edit question
Solved by:
Jean-Paul Calderone
Solved:
2012-05-14
Last query:
2012-05-14
Last reply:
2012-05-13
André Cruz (andrefcruz) said : #1

On #pyopenssl it was said that we need access to SSL_CTX_use_psk_identity_hint(3). So this is a feature request. :)

Best Jean-Paul Calderone (exarkun) said : #2

Thus, the answer to this question is no, it is not supported. Please use the "bug" system for feature requests (and feature requests that come with documented, unit tested patches are much more likely to be addressed in a timely manner :).

André Cruz (andrefcruz) said : #3

Thanks Jean-Paul Calderone, that solved my question.