Strovent SystemsSign in
Reference

TLS for 3270 and 5250

What an encrypted Telnet connection is, the usual port, and what a certificate error means.

Plain Telnet is not encrypted. Anyone on the network path can read the screen, and that includes user names and passwords. TN3270 and TN5250 hosts can run the same protocol inside TLS.

Ports

  • 23 is the usual port for plain Telnet.
  • 992 is the usual port for Telnet over TLS.

The host decides. Your administrator can give you the real port. The TLS port is a separate listener: the connection starts with a TLS handshake, then the Telnet bytes flow inside it. Connecting with TLS on to a plain port (or the reverse) fails or hangs.

On z/OS

On z/OS the TLS is often provided by AT-TLS (Application Transparent TLS): the TCP/IP stack does the encryption, and the TN3270 server only sees clear data. It is set up in the TN3270 profile (the secure port) and in the Policy Agent. Client certificates can be required.

What the client checks

A client that supports TLS checks that:

  1. The host's certificate chain leads to a certificate authority (CA) the device trusts.
  2. The certificate is valid (dates).
  3. The certificate matches the host name you entered.

If a check fails the handshake stops. Typical causes:

On z/OS the TN3270 server logs a failed handshake as EZZ6034I with ERR 6002; see EZZ6034I CONN DROP ERR 6002, TN3270 TLS handshake failed.

What TLS does not do

TLS protects the connection. It does not hide your host name from the network, and it does not replace host security (user ID and password rules still apply).

Spotted a mistake? Email [email protected].