Troubleshooting
Problem
Attempting to use FTP/TLS, but the session fails with an 'EZA2897I Authentication negotiation failed' message after the AUTH TLS command. For some network configurations, this might occur only on connection attempts to certain servers.
Symptom
If debugging is enabled, the FTP Client trace shows:
If a System SSL trace is enabled, it might show:
FCxxxx authServer: secure_socket_init failed with rc = 413 (Certificate signature is incorrect).
- EXIT gsk_verify_data_signature(): <--- Exit status 0x03353004 (53817348)
ERROR gsk_verify_certificate_signature(): Unable to verify certificate signature: Error 0x03353004
EXIT gsk_verify_certificate_signature(): <--- Exit status 0x03353004 (53817348)
ERROR validate_certificate(): Unable to verify certificate signature: Error 0x03353004
ERROR gsk_validate_certificate(): Unable to validate certificate: Error 0x03353004
EXIT gsk_validate_certificate(): <--- Exit status 0x03353004 (53817348)
ERROR read_v3_certificate(): Unable to validate peer certificate: Error 0x03353004
ERROR send_v3_alert(): Sent SSL V3 alert 42 to xx.xx.xx.xx[21]
Cause
Packets containing server's certificate have been altered in transit. The likely cause is an intermediate firewall from Check Point Software Technologies LTD with Telnet Option checking enabled for FTP sessions.
Diagnosing The Problem
Compare packet traces collected at both ends of the connection, or compare a copy of the server's public certificate with the one shown in the SSL trace (or contained in the packets). Examination will show that wherever a x'FF' appears in the original certificate, that byte and the next one will have a x'0A' value on arrival.
Resolving The Problem
Change the $FWDIR/lib/ftp.def file on the firewall system (make a backup copy first), to update the #define statement for FTP_CHECK_ARGS to remove the FTP_NO_TELNET_OPTIONS specification. For example:becomes
#define FTP_CHECK_ARGS (FTP_NO_CLIENT_227 | FTP_NO_TELNET_OPTIONS)
#define FTP_CHECK_ARGS (FTP_NO_CLIENT_227)
Contact the vendor for alternative solutions.
Was this topic helpful?
Document Information
Modified date:
03 September 2021
UID
swg21402847