This can be useful when wanting to encrypt a connection without setting up a CA. I think it should be as simple as adding --enable-psk to the configure options and then adding wrappers for the related functions https://www.wolfssl.com/using-pre-shared-keys-psk-with-wolfssl-2/