With encrypt you can enable and disable support of the ENCRYPTION option, which is used to negotiate the encryption method and the key used. Currently only variants DES_CFB64 and DES_OFB64 of DES64 are supported in TELNET. encrypt is only effective if the -Z tls-required or -A on option is not specified at the same time.
As only encryption routines from the OpenSSL library are used, you can specify this library - if its name is different from the default (SYSLNK.TCP-IP-AP.nnn) - with the aid of the -Z OpenSSLlibname option (see "-Z OpenSSLlibName - Define an LMS file for an OpenSSL library").
Alternatively you can specify the encrypt command settings using the -H option (see "Option -H -Enable/disable the ENCRYPTION option").
The settings of the encrypt command become effective in the next TELNET session.
encrypt |
disable | enable | key <x-string 1..16> | status |
disable
Disables encryption for both directions (input/output).
enable
Enables encryption for both directions (input/output).
key <x-string 1..16>
Encryption key for DES
status
Shows the current settings for the encryption option. The display mainly covers the encryption algorithms supported.