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:
QSSLPCLlists the protocol versions the system allows at all. No application can use a version that is not in it.QSSLCSLCTLandQSSLCSL. WithQSSLCSLCTLset to*OPSYS, the operating system picks the allowed cipher suites. With*USRDFN, the administrator edits the list inQSSLCSL. A cipher suite cannot be inQSSLCSLunless its protocol is inQSSLPCL.- 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
TLSCONFIGin System Service Tools (SSLCONFIGon 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.** WithQSSLPCLset toOPSYS, 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
QSSLPCLlists 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?
- The certificate. An expired certificate, or one the client does not trust, also fails the handshake. See TLS for 3270 and 5250.
- The Telnet server is not running or not listening on 992. See IBM i Telnet server not running.
Related
- TLS for 3270 and 5250
- IBM i Telnet server not running
- TN3270 TLS error 6002
- Check if a TCP port is open without Telnet: nc, Test-NetConnection, bash
- Set up TLS for IBM i Telnet on port 992: DCM, QIBM_QTV_TELNET_SERVER and ALWSSL
- IBM i Access Client Solutions MSGGEN004 or CWBCO1034 on a TLS connection