Reproduction steps Start test-server.escript in one terminal In another, run the following command: openssl s_client -CAfile ./root-cert.pem Note malformed_handshake_data error due to USA (3 byte) country code. OpenSSL