Self-signed certificate without Basic Constraint Extension is used as a server TLS certificate. TLS client is configured to ignore any TLS certificate validation errors.
Client cannot connect to the server and a wrong message about missing Basic Constraint Extension is emitted.
Patch applied to preserve the original TLS certificate validation error if Basic Constraint Extension is not found in the certificate.
Client can connect to the server, error message about untrusted certification authority which signed the server certificate is emitted, the connection will continue as expected.