Topic: why I cannot use wolfssl client connect to openssl server

openssl s_server -accept 11111 -key server.key -cert server.crt

wolfssl/debug/client.exe //with default config or -v [1-3]

the client tell me an error
"wolfSSL_connect error -326, record layer version error"
the openssl tell me

ACCEPT
ERROR
shutting down SSL
CONNECTION CLOSED

then I try to use foxmail with ssl smtp ,I recevied error 

SSL_accept error -311, unknown type in record hdr

when I use wolfSSL/debug/server.exe as a ssl server.
And recevied a good handshake when I use openssl s_server;

something different between wolfssl's ssl and openssl's ssl?

Share

Re: why I cannot use wolfssl client connect to openssl server

Hi zheng6686,

This could be due to the TLS version supported by OpenSSL. When using the OpenSSL server try connecting the wolfSSL client to it using -v 1 "client.exe -v 1". If using the default authentication then the OpenSSL server will have to be set to use the wolfSSL example server-cert.pem and server-key.pem to allow for the client to authenticate the server using its default CA.

"openssl s_server -port 11111 -cert .\certs\server-cert.pem -key .\certs\server-key.pem"
"client.exe -v 1"

To use the wolfSSL client with SMTP the flag -M smtp should be used. If the client is not ready for the STARTTLS protocol it will try to parse it as a TLS handshake packet.

Regards,
Jacob

Share