Set up TLS for IBM i Telnet on port 992: DCM, QIBM_QTV_TELNET_SERVER and ALWSSL
How IBM i Telnet gets TLS on port 992: a certificate for QIBM_QTV_TELNET_SERVER in DCM, ALWSSL on CHGTELNA, and how to check the TLS listener.
This page is for IBM i administrators who want 5250 sessions over TLS. The Telnet server on IBM i can accept TLS and plain Telnet at the same time, on two different ports.
The ports
By default the Telnet server starts TLS sessions on port 992 and plain sessions on port 23. It takes the numbers from the service table entries telnet-ssl and telnet.
If an older release set up port restrictions for these ports, remove them first. IBM's steps use IBM Navigator for i: Network, TCP/IP Configuration, TCP/IP Configuration Properties, Port Restrictions tab. A restricted telnet-ssl port stops TLS from starting: the server writes TCP2550 "Access to port 992 is restricted" to the QTVTELNET job log and to QSYSOPR.
The certificate
The Telnet server uses the certificate assigned to the application QIBM_QTV_TELNET_SERVER in Digital Certificate Manager (DCM). IBM's guided task:
- In DCM, create a local certificate authority (CA), or use a certificate from a CA your clients already trust.
- Issue a server certificate. It goes into the
*SYSTEMcertificate store. - When DCM asks which applications can use the certificate, select QIBM_QTV_TELNET_SERVER.
- Install the local CA certificate on each client, so the client can validate the server certificate.
Client authentication (the host asking each client for a certificate) is an optional extra step in DCM. Leave it off unless every client has a certificate.
Turn TLS on
The Allow Transport Layer Security parameter on CHGTELNA decides what starts:
CHGTELNA ALWSSL(*YES) TLS and plain Telnet
CHGTELNA ALWSSL(*ONLY) TLS only
CHGTELNA ALWSSL(*NO) plain Telnet only
Then restart the Telnet server; see IBM i Telnet connection refused, check that the Telnet server is running.
Check that it worked
NETSTAT *CNN, then F22 to widen the Local Port column and F14 to show numbers. Atelnet-ssllistener on 992 should be there.- More than one thread under the QTVTELNET job means TLS started.
- CPDBCB3 "TLS is not available for use" means TLS is not configured or failed to start. CPDBCnn messages in the QTVTELNET job log (in QSYSWRK) give the reason, for example a certificate that is wrong or expired.
- With no certificate, or an expired one, the server can still start TLS, but every handshake then fails.
Connecting
The client must use TLS on port 992 and trust the CA that issued the server certificate. This app has a TLS switch on the profile and no setting for a TLS client certificate, so it cannot connect to a Telnet server that requires client authentication. For a private CA on your device, see TLS and certificates.
Related
- TLS for 3270 and 5250
- 5250 TLS stops working after an IBM i upgrade or PTF: QSSLPCL and QSSLCSL
- IBM i Telnet connection refused, check that the Telnet server is running
- IBM i Access Client Solutions MSGGEN004 or CWBCO1034 on a TLS connection