Strovent SystemsSign in
Reference

EZZ6034I CONN DROP ERR 6002, TN3270 TLS handshake failed

EZZ6034I ERR 6002 means the TLS handshake between the z/OS TN3270 server and the client failed. Common certificate causes and how to read EZZ6035I.

On z/OS, the TN3270 server logs this when a secure connection fails before any screen is sent:

EZZ6034I TELNET CONN 00001234 LU **N/A** CONN DROP ERR 6002

Error code 6002 means the TLS (SSL) handshake between the server and the client failed. The handshake on the server side is done by z/OS System SSL. LU **N/A** shows that no LU was assigned yet. To the user, the client just reports that the secure connection failed or was closed.

Common causes

IBM lists these as the usual reasons:

  • An expired certificate: the server certificate, the client certificate if the server asks for one (CLIENTAUTH), or any CA certificate that signed them.
  • A self-signed or company CA that one side does not trust. When the server uses a locally created certificate instead of one from a well-known CA, that root certificate must be present and marked trusted on the key ring of the server and in the trust store of the client.
  • The server certificate is not set up right on the key ring. It must be on the key ring, marked as the default certificate, and contain its private key.

Things to check from the client side:

  • You are connecting to the server's TLS port, with TLS turned on in the client. A plain client on a TLS port, or a TLS client on a plain port, fails.
  • The device trusts the CA that signed the host's certificate. A company CA has to be installed on the device.
  • The host name you typed is a name on the certificate.

See TLS for 3270 and 5250 for how the client checks a certificate.

Finding the exact reason on the host

For the system programmer, IBM's steps are:

  1. Turn on DEBUG DETAIL in the Telnet parameters that apply (TELNETGLOBALS, TELNETPARMS or PARMSGROUP).
  2. At the next failure, read message EZZ6035I. It shows RCODE: 6002-00 SSL/TLS handshake failed, with PARM1 and PARM3.
  3. PARM1, in hexadecimal, is the System SSL function return code. Look it up in the System SSL documentation.
  4. PARM3 names the System SSL function that failed. GSK_ENVIRONMENT_INIT usually points to the key ring setup or the server's SAF (RACF) access to it. GSK_SECURE_SOCKET_INIT usually means one of the certificates was rejected.

Check the certificates with RACDCERT for RACF key rings, or with gskkyman for a UNIX key database. If the TN3270 port uses AT-TLS (TTLSPORT instead of SECUREPORT), turn on debugging in the AT-TLS policy instead. A System SSL trace (the GSKSRVR component trace) gives the most detail.

Sources

Spotted a mistake? Email [email protected].