Concept and mechanism
A tool can have different objectives from a production client. OpenSSL s_client is a diagnostic tool that can continue after verification errors to make them visible. A completed handshake does not erase those errors.
Configure the test with appropriate trust and reference name, using failure behavior such as -verify_return_error when that is the criterion. -showcerts shows sent certificates without guaranteeing they form a validated chain. For offline verification, an approved root can provide the anchor while -untrusted supplies supporting intermediate material.
The option name does not mean the certificate is malicious; it means supplying it does not grant trust.
Guided application
Reproduce the affected client context: TLS library, trust store, name, version, and configuration can differ from the operator laptop. Compare certificates and results without collecting private keys for reports. In an exercise, a report declares success despite unknown CA and no hostname check.
Correct the criterion and repeat the defined observation before accepting change. After restoring TLS, validate authorization and business operation on relevant instances. In the initial 2026-09-30 review, these examples used OpenSSL 3.5 documentation and had no executed commands, issuance or labs.
The two lessons added on 2026-10-02 provide offline OpenSSL 3.6.1 evidence; they still do not validate handshakes or real endpoints. Real application requires checking options and behavior of the installed version.
A connection with s_client verification errors needs analysis even when the tool continues.
Common pitfalls
showcerts as a validated chain; diagnostic output as acceptance; laptop trust store as universal; handshake as completed operation.
Related topics: Keys, certificates, and trust · Identity, name, and time · Negotiation, mTLS, and the application
Define what the test proves, establish context, and validate the business outcome.
References
- OpenSSL diagnostic TLS client · OpenSSL 3.5 documentation
- OpenSSL certificate verification · OpenSSL 3.5 documentation
- curl certificate trust and identity checks · Rolling project documentation inspected 2026-09-30
- TLS deployment guidance · RFC 9325 / BCP 195
- NGINX upstream TLS · Rolling project documentation inspected 2026-09-30