[openssl-users] SSL alert number 48

wizard2010 at gmail.com wizard2010 at gmail.com
Mon Nov 27 16:07:44 UTC 2017

Hi there.

I'm getting this error on a TLS server&client that I'm implementing and I
can't really understand what I'm doing wrong.

139853560931992:error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert
> unknown ca:s3_pkt.c:1487:SSL alert number 48
> 139853560931992:error:140790E5:SSL routines:ssl23_write:ssl handshake
> failure:s23_lib.c:177:

This is the code of my server: https://pastebin.com/Fyuki8v0 and I generate
the certificates this way: https://pastebin.com/CDRKU2Gc
And I'm testing the server this way: openssl s_client -host -port
4444 -cert client.crt -key client.key -CAfile ca.crt

If I run a server this way openssl s_server -key server.key -cert
server.crt -CAfile ca.crt -accept 4444
I'm able to communicate with the same certificates and on my server code I
always get:

> Handshake Error 1

This is the result of openssl s_client command:

Any idea what's happening to get this error?

Kind regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20171127/ae85c6e9/attachment.html>

More information about the openssl-users mailing list