I have a server running on Ubuntu 1804 with OpenSSL 1.1.1 11 Sep 2018. Clients talk to the server using PSK authentication with PSK-AES256-CBC-SHA as the cipher.
When I use a client built on Windows with openssl-1.1.1c (built using Microsoft Visual Studio 2019) I am unable to make it work.
On the server side, I get the following:
139845863200512:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../ssl/record/rec_layer_s3.c:1528:SSL alert number 40
And on the client side,
11720:error:141970DF:SSL routines:tls_construct_cke_psk_preamble:psk identity not found:ssl\statem\statem_clnt.c:2917
I saw the following in openssl-1.1.1c\ssl\statem\extensions_clnt.c.
/*
* We found a PSK using an old style callback. We don't know
* the digest so we default to SHA256 as per the TLSv1.3 spec
*/
cipher = SSL_CIPHER_find(s, tls13_aes128gcmsha256_id);
So does this mean that only TLS_AES_128_GCM_SHA256 works with TLS1.3? Any pointers to what I might be missing? Any tutorial on how to use client PSK authentication from Windows platform would be helpful.
I am able to connect to the server from a linux box using the same PSK id and key. But unable to connect from a windows box.