Hide Forgot
Currently, socat does not print an error message when certificate does not match the host name. This is mitigated by the fact that the system CA certificate store is not used (bug 1019964). Host name checking probably needs to be made optional, or the check could be overridden by specifying an explicit (non-CA) certificate or its SHA-256 hash.
This has been fixed in socat version 1.7.3.0, Socat now checks the servername(s) in the certificates.
This bug is addressed by ERRATA RHBA-2017:2049-03 socat bug fix update https://errata.devel.redhat.com/advisory/26967