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:
- The host's certificate chain leads to a certificate authority (CA) the device trusts.
- The certificate is valid (dates).
- The certificate matches the host name you entered.
If a check fails the handshake stops. Typical causes:
- The certificate is signed by a company CA. Install the CA certificate on the device.
- The certificate has expired.
- You connected by IP address, but the certificate names a host name. Use the name on the certificate. See TLS hostname mismatch on a TN3270 or TN5250 connection.
- The host offers only an old TLS version that the device refuses. On IBM i after an upgrade or PTF, see 5250 TLS stops working after an IBM i upgrade or PTF: QSSLPCL and QSSLCSL.
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).
Related
- Certificate problems
- 3270 sessions
- Telnet basics
- EZZ6034I CONN DROP ERR 6002, TN3270 TLS handshake failed
- 5250 TLS stops working after an IBM i upgrade or PTF: QSSLPCL and QSSLCSL
- TLS hostname mismatch on a TN3270 or TN5250 connection
- Set up TLS for IBM i Telnet on port 992: DCM, QIBM_QTV_TELNET_SERVER and ALWSSL
- TN3270 TLS works from Windows but fails in a Linux container: the private CA is missing