TLS unit tests fail with OpenSSL 1.1.1m
$ grep OPENSSL_VERSION_TEXT /usr/include/openssl/opensslv.h
# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1m 14 Dec 2021"
The full list of failing tests:
[ RUN ] TLSTest.loadNoCAFile
tls_unittest.cc:359: Failure
Failed
exception with unknown 'No such file or directory (system library, fopen)'
[ FAILED ] TLSTest.loadNoCAFile (0 ms)
[ RUN ] TLSTest.loadCAPath
[ OK ] TLSTest.loadCAPath (0 ms)
[ RUN ] TLSTest.loadKeyCA
tls_unittest.cc:359: Failure
Failed
exception with unknown 'no certificate or crl found (x509 certificate routines, X509_load_cert_crl_file)'
[ FAILED ] TLSTest.loadKeyCA (0 ms)
[ RUN ] TLSTest.loadCertFile
[ OK ] TLSTest.loadCertFile (0 ms)
[ RUN ] TLSTest.loadNoCertFile
tls_unittest.cc:359: Failure
Failed
exception with unknown 'No such file or directory (system library, fopen)'
[ FAILED ] TLSTest.loadNoCertFile (0 ms)
[ RUN ] TLSTest.loadCsrCertFile
tls_unittest.cc:359: Failure
Failed
exception with unknown 'no start line (PEM routines, get_name)'
[ FAILED ] TLSTest.loadCsrCertFile (0 ms)
[ RUN ] TLSTest.loadKeyFile
[ OK ] TLSTest.loadKeyFile (0 ms)
[ RUN ] TLSTest.loadNoKeyFile
tls_unittest.cc:359: Failure
Failed
exception with unknown 'No such file or directory (system library, fopen)'
[ FAILED ] TLSTest.loadNoKeyFile (0 ms)
[ RUN ] TLSTest.loadCertKeyFile
tls_unittest.cc:359: Failure
Failed
exception with unknown 'no start line (PEM routines, get_name)'
[ FAILED ] TLSTest.loadCertKeyFile (0 ms)
[ RUN ] TLSTest.loadMismatch
[ OK ] TLSTest.loadMismatch (0 ms)
[ RUN ] TLSTest.configure
[ OK ] TLSTest.configure (0 ms)
[ RUN ] TLSTest.configureError
tls_unittest.cc:359: Failure
Failed
exception with unknown 'load of cert file '/no-such-file' failed: No such file or directory (system library, fopen)'
[ FAILED ] TLSTest.configureError (0 ms)
[ RUN ] TLSTest.stream
[ OK ] TLSTest.stream (0 ms)
[ RUN ] TLSTest.noHandshake
tls_unittest.cc:406: Failure
Failed
send got unexpected error 'uninitialized (SSL routines, ssl_write_internal)'
tls_unittest.cc:406: Failure
Failed
receive got unexpected error 'uninitialized (SSL routines, ssl_read_internal)'
[ FAILED ] TLSTest.noHandshake (2 ms)
[ RUN ] TLSTest.serverNotConfigured
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'no shared cipher (SSL routines, tls_post_process_client_hello)'
tls_unittest.cc:406: Failure
Failed
client got unexpected error 'sslv3 alert handshake failure (SSL routines, ssl3_read_bytes)'
[ FAILED ] TLSTest.serverNotConfigured (2 ms)
[ RUN ] TLSTest.clientNotConfigured
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'tlsv1 alert unknown ca (SSL routines, ssl3_read_bytes)'
tls_unittest.cc:406: Failure
Failed
client got unexpected error 'certificate verify failed (SSL routines, tls_process_server_certificate)'
[ FAILED ] TLSTest.clientNotConfigured (14 ms)
[ RUN ] TLSTest.clientHTTPnoS
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'http request (SSL routines, ssl3_get_record)'
[ FAILED ] TLSTest.clientHTTPnoS (1 ms)
[ RUN ] TLSTest.unknownClient
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'wrong version number (SSL routines, ssl3_get_record)'
[ FAILED ] TLSTest.unknownClient (1 ms)
[ RUN ] TLSTest.anotherClient
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'certificate verify failed (SSL routines, tls_process_client_certificate)'
[ FAILED ] TLSTest.anotherClient (18 ms)
[ RUN ] TLSTest.selfSigned
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'certificate verify failed (SSL routines, tls_process_client_certificate)'
[ FAILED ] TLSTest.selfSigned (19 ms)
[ RUN ] TLSTest.noHandshakeCloseOnError
tls_unittest.cc:406: Failure
Failed
send got unexpected error 'uninitialized (SSL routines, ssl_write_internal)'
tls_unittest.cc:406: Failure
Failed
receive got unexpected error 'uninitialized (SSL routines, ssl_read_internal)'
[ FAILED ] TLSTest.noHandshakeCloseOnError (2 ms)
[ RUN ] TLSTest.serverNotConfiguredCloseonError
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'no shared cipher (SSL routines, tls_post_process_client_hello)'
tls_unittest.cc:406: Failure
Failed
client got unexpected error 'sslv3 alert handshake failure (SSL routines, ssl3_read_bytes)'
[ FAILED ] TLSTest.serverNotConfiguredCloseonError (2 ms)
[ RUN ] TLSTest.clientNotConfiguredCloseonError
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'tlsv1 alert unknown ca (SSL routines, ssl3_read_bytes)'
tls_unittest.cc:406: Failure
Failed
client got unexpected error 'certificate verify failed (SSL routines, tls_process_server_certificate)'
[ FAILED ] TLSTest.clientNotConfiguredCloseonError (7 ms)
[ RUN ] TLSTest.clientHTTPnoSCloseonError
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'http request (SSL routines, ssl3_get_record)'
[ FAILED ] TLSTest.clientHTTPnoSCloseonError (1 ms)
[ RUN ] TLSTest.anotherClientCloseonError
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'certificate verify failed (SSL routines, tls_process_client_certificate)'
[ FAILED ] TLSTest.anotherClientCloseonError (19 ms)
[ RUN ] TLSTest.selfSignedCloseonError
tls_unittest.cc:406: Failure
Failed
server got unexpected error 'certificate verify failed (SSL routines, tls_process_client_certificate)'
[ FAILED ] TLSTest.selfSignedCloseonError (18 ms)