Docs

TLS, certificates and smart cards

WND Terminal encrypts with the operating system’s own TLS library and checks every mainframe certificate. IT decides which certificates count as trusted.

In short

WND Terminal encrypts connections with TLS 1.2 or later, on the host’s secure port or negotiated on its telnet port, using SChannel on Windows and Apple’s Security framework on macOS. FIPS status depends on the exact module and configuration. It checks each mainframe certificate against the computer’s trusted certificates. IT can require encryption and pre-approve certificate fingerprints. It can also stop people from trusting certificates on their own.

On a small screen, swipe the table to read all columns.

ControlSettingEffect
Require encryptionRequireEncryptionEvery connection uses TLS 1.2 or later. Encryption can’t be set to Off.
Stop self-trusted certificatesAllowUserTrust = falseOnly certificates the computer trusts, or that you list, are accepted.
Pre-approve certificatesTrustedCertificatesSHA-256 fingerprints to accept, such as self-signed ones.
Smart card sign-inSignInWithCertificate, CertificateIssuerSign in with the person’s certificate on every encrypted connection.

Encryption

Encryption on the connect page has three choices.

  • Off.
  • TLS on a secure port. TLS 1.2 or later from the first byte. This is the usual secure-port setup, often port 992. In Group Policy, a connection line with secure is always encrypted, and 992 is its default port.
  • TLS negotiated on this port. The host’s normal telnet port, usually 23, agrees to encrypt first. The TLS handshake runs on the same connection before any screen data. In Group Policy, use starttls in place of secure.

Negotiated TLS on the telnet port

z/OS can encrypt TN3270 connections on the normal telnet port instead of a separate secure port. The Communications Server calls this negotiated TLS, set with CONNTYPE NEGTSECURE on the port, or ANY to let each terminal choose. The host offers it with the telnet START_TLS option, and WND Terminal agrees. TN3270E is then agreed inside TLS.

Certificates are checked exactly as on a secure port. Trusted certificates, TrustedCertificates, AllowUserTrust and smart cards all work the same.

{ "Name": "Production", "Host": "mvs.example.com", "Port": 23, "StartTls": true }

A connection IT sets up with StartTls is always encrypted. If the host doesn’t offer negotiated TLS, it’s refused with a message saying so. The same goes for every connection when RequireEncryption is on. When a person chose negotiated TLS for their own connection and neither rule applies, the session connects unencrypted, and a note on the session says so. A session connected with encryption Off to a host that offers it says that too.

Behind a proxy, encryption still runs end to end with the host. See Proxy servers.

Host TLS uses SChannel on Windows and Apple’s Security framework on macOS. Using an OS TLS API alone does not establish FIPS validation. Check the exact module certificate and approved configuration against the NIST CMVP listing.

How certificates are checked

WND Terminal checks the mainframe’s certificate against the computer’s trusted certificates. A certificate from your own certificate authority is accepted once that authority is deployed to the computer.

If the computer doesn’t trust a certificate, which is common with company-issued or self-signed ones, the app shows who it was issued to, by whom, its dates and its SHA-256 fingerprint, and asks the person.

Pinned certificates

When a person trusts a certificate, WND Terminal saves its fingerprint for that host in trusted-certificates.json in the app’s data folder. From then on it accepts only that exact certificate. A changed certificate is refused with a warning. A certificate trusted for the main address is accepted on a backup address only if it’s the very same certificate.

What IT can lock

  • RequireEncryption refuses unencrypted connections, and hosts that don’t offer negotiated TLS on their telnet port.
  • AllowUserTrust = false stops people trusting certificates themselves. Certificates they trusted before are ignored.
  • TrustedCertificates lists SHA-256 fingerprints to trust anyway. The app shows a certificate’s fingerprint when it connects, and your mainframe team can read it from the certificate. Colons are optional.
C6:2F:22:79:A8:9D:36:D9:72:57:05:68:42:92:05:76:F6:CA:6C:36:94:DE:B7:ED:89:96:02:22:D2:C3:80:AC

You can also turn off the mainframe’s unencrypted port, so no one can connect without encryption. In the browser version, people can’t trust a host certificate themselves.

Reconnecting

If the connection drops without the person disconnecting, the session reconnects by itself after 1, 2, 4 and up to 30 seconds. It stays encrypted and says so in the status line. The mainframe sees a new terminal, so people usually log on again.

Smart cards and client certificates

Mainframes set up for client certificates let people sign in with a smart card (CAC, PIV) instead of a password. That means z/OS AT-TLS with HandshakeRole ServerWithClientAuth and the certificate mapped to a RACF user ID. On a secure connection, Sign in offers two choices.

  • With my smart card or a certificate on this computer. This uses the Windows certificate store or a macOS keychain, where a smart card’s certificates appear when it’s inserted. Pick one, or let WND Terminal choose. It picks a certificate that’s valid today and meant for signing in, and it tries a smart card’s certificates first. The operating system asks for the PIN, and the key never leaves the card.
  • With a certificate file (.p12, .pfx). Its password is asked for when connecting and never saved. The file is copied into the app’s client-certificates folder, still protected by its password.

If the host wants a certificate and none was given, or rejects the one sent, the app tells the person what went wrong. The status line shows Certificate when one signed in. Printer sessions sign in the same way as their terminal.

IT can turn this on for everyone with SignInWithCertificate. CertificateIssuer, such as DOD ID CA, picks among several certificates. For one connection only, set SignInWithCertificate on the connection or end its Group Policy line with |smartcard.

A certificate can also log people on to z/OS applications with Express Logon, so they never type a password. See Sign-on without a password.

Questions

Is WND Terminal's encryption FIPS validated?

Host TLS uses SChannel on Windows and Apple's Security framework on macOS. FIPS assurance depends on the exact validated module and approved configuration; check the NIST CMVP listing for your platform.

What happens if a mainframe's certificate changes?

If a person trusted the old certificate, WND Terminal accepts only that exact certificate for the host, so the new one is refused with a warning.

Can people sign in with a CAC or PIV card?

Yes, on mainframes that accept client certificates through z/OS AT-TLS with RACF certificate mapping. The operating system asks for the PIN, and the key never leaves the card.

Can WND Terminal encrypt on port 23?

Yes. Choose TLS negotiated on this port, or set StartTls on IT's connection. It works with z/OS ports set to CONNTYPE NEGTSECURE or ANY.

See it on your own mainframe.

Install WND Terminal on a handful of PCs or Macs, import your sessions and keymaps, and let a real team use it next to what you run today. Free, two to four weeks.