IBM i Access Client Solutions MSGGEN004 or CWBCO1034 on a TLS connection
ACS fails over TLS with MSGGEN004 "SSL peer shut down incorrectly", or IBM i Access shows CWBCO1034 and an SSL code. IBM's causes and what to check.
IBM i Access Client Solutions (ACS) and the older IBM i Access for Windows can connect to IBM i over TLS. When that fails, the messages are short:
- MSGGEN004 "An unexpected end of the file or stream has been encountered (SSL peer shut down incorrectly)". It may happen only for some functions, or start after an upgrade.
- CWBCO1034 with an SSL error code, for example 25406.
Which ports are involved
A TLS 5250 session uses the Telnet server on port 992. The other ACS functions (sign-on, database, files, remote commands) use the IBM i Access host servers, on secure ports 9470 to 9476. Each server application has its own certificate assignment in Digital Certificate Manager (DCM), so one function can work while another fails. On the IBM i, NETSTAT *CNN then F14 shows which secure ports are listening.
Causes IBM lists for MSGGEN004
- The TLS configuration in DCM is incomplete. If any server application ACS needs has no certificate assigned, MSGGEN004 follows.
- The system was upgraded to a new IBM i release, which changes which protocols and ciphers are allowed. IBM names 7.4 as a common case: it adds TLS 1.3 and disables most TLS 1.2 ciphers.
- The system values
QSSLCSL,QSSLCSLCTLandQSSLPCLhold values that System TLS has disabled, often migrated unchanged from an older release. - A server application in DCM was changed from
*PGMto its own list of protocols and ciphers, and that list is out of date.
IBM's quickest fix for 2 and 3 is to set the three system values to *OPSYS, the defaults shipped with the release. For 4, remove the old entries or go back to *PGM. IBM does not suggest re-enabling old protocols.
CWBCO1034
The number after CWBCO1034 is the SSL error code. IBM documents 25406 as an I/O error: often the client received a TCP reset, or the server certificate assigned to the application in DCM has expired. In DCM, check the certificate assigned to each server application and its validity period; renew it and assign the new one to the same applications.
This page does not explain other codes, such as 25202. For those, start with the DCM checks above and the MSGGEN004 causes. When the cause is still unclear, IBM's page for 25406 asks for the IBM i Access CWBCOTRC trace and a Wireshark trace of the failed connection.
A 5250 session from another client
If only 5250 over TLS fails, the checks are the same as for any TLS client: see 5250 TLS stops working after an IBM i upgrade or PTF: QSSLPCL and QSSLCSL and Set up TLS for IBM i Telnet on port 992: DCM, QIBM_QTV_TELNET_SERVER and ALWSSL.
Related
- 5250 TLS stops working after an IBM i upgrade or PTF: QSSLPCL and QSSLCSL
- Set up TLS for IBM i Telnet on port 992: DCM, QIBM_QTV_TELNET_SERVER and ALWSSL
- IBM i Telnet connection refused, check that the Telnet server is running
- TLS for 3270 and 5250