Can OpenSSL handle multiple authentication mechanisms on the same SSL context?

Michel michel.sales at
Sat Jun 26 22:46:21 UTC 2021

> We are trying to support a server that would support PSK and SRP
authentication mechanisms.
> Would multiple callbacks for different mechanisms work simultaneously on
the same SSL context?

My quick answer is Yes.

In a recent past I did some [multi-threaded] servers using both SRP and PSK
on the same context and I don't recall having encountered any problem.

I believe it was OpenSSL  1.1.1f using TLS 1.2 under Windows 32bits.


Hope it helps,



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-users mailing list