I would like to implement pre-shared keys using OpenSSL. Another mechanism is being used to provide for a common secret at all nodes to be used as a symmetric key. OpenSSL should simply load the key from a local file and use it. No certificates should be involved.
There are two functions: SSL_set_psk_client_callback() and a corresponding server callback. I don't need the SSL_CTX_use_psk_identity_hint(). 1. Do I still need to create an identify hint function? 2. Where would be the best place to call the client/server callback functions? 3. Is this all that is required to make it work? If there is any further information regarding how to implement pre-shared keys or examples, it would be greatly appreciated. Thanks, Stephen F Bush (GE Global Research) Author http://www.amazon.com/author/stephenbush