Strovent SystemsSign in
Reference

5250 TLS stops working after an IBM i upgrade or PTF: QSSLPCL and QSSLCSL

Port 23 works but TLS on 992 fails after an IBM i change: the client and host share no TLS version or cipher. Compare QSSLPCL, QSSLCSL and the DCM settings.

A 5250 session that used TLS (usually port 992) stops at the handshake, while the same host still answers on plain port 23. This often starts right after an IBM i release upgrade, a PTF group, or a change to the TLS system values. The client and the host no longer have a TLS version or cipher suite in common.

What decides the host's TLS settings

IBM i System TLS uses these settings, from the widest to the narrowest:

  • QSSLPCL lists the protocol versions the system allows at all. No application can use a version that is not in it.
  • QSSLCSLCTL and QSSLCSL. With QSSLCSLCTL set to *OPSYS, the operating system picks the allowed cipher suites. With *USRDFN, the administrator edits the list in QSSLCSL. A cipher suite cannot be in QSSLCSL unless its protocol is in QSSLPCL.
  • The application definition in Digital Certificate Manager (DCM). The Telnet server is QIBM_QTV_TELNET_SERVER. Its protocol and cipher settings can be left to the program (*PGM) or set to a fixed list.
  • The eligible default lists set with TLSCONFIG in System Service Tools (SSLCONFIG on 7.3 and earlier). An application that does not choose its own protocols uses the intersection of these lists and the system values.

Why an upgrade or PTF changes things

  • *`OPSYS follows the release.** With QSSLPCL set to OPSYS, the allowed versions change with the release. On IBM i 7.4, 7.5 and 7.6, OPSYS` means TLS 1.3 and TLS 1.2 only. TLS 1.1 and 1.0 are gone, so a client that can only do TLS 1.0 or 1.1 now fails.
  • A fixed value does not follow the release. If QSSLPCL lists versions by name, it stays the same after an upgrade, and newer versions must be added by hand.
  • Security PTFs can remove a protocol or cipher suite from the eligible default lists.
  • TLS 1.3 itself. Some older clients and network devices fail when the host offers TLS 1.3.

How to find the mismatch

On the host. Run WRKSYSVAL QSSL* and display QSSLPCL, QSSLCSLCTL and QSSLCSL. In DCM, check whether the Telnet server application uses *PGM or its own protocol list. A change to an application definition takes effect only after that server is restarted.

On the client side. Find which TLS versions the 5250 client supports. A client that offers only TLS 1.0 or 1.1 cannot connect to a host that allows only 1.2 and 1.3.

Test from another machine. With OpenSSL installed, openssl s_client -connect host.example.com:992 -tls1_2 and the same with -tls1_3 show which versions the host accepts.

The safe fix

Update the client so it supports TLS 1.2 or 1.3. IBM lists TLS 1.1, TLS 1.0 and SSL 3.0 as weak protocols and advises keeping them disabled. If a weak protocol is truly needed for one old client, IBM prefers enabling it for that one application in DCM over adding it system-wide.

If TLS 1.3 is the problem, the host can leave TLS 1.3 out of the Telnet server's DCM definition while the client or device is fixed.

Not a protocol problem?

Sources

Spotted a mistake? Email [email protected].