Áú»¢¶Ä²©

§¿§ä§à §á§Ö§â§Ö§Ó§à§Õ §ã§ä§â§Ñ§ß§Ú§è§í §Õ§à§Ü§å§Þ§Ö§ß§ä§Ñ§è§Ú§Ú §ã §Ñ§ß§Ô§Ý§Ú§Û§ã§Ü§à§Ô§à §ñ§Ù§í§Ü§Ñ. §±§à§Þ§à§Ô§Ú§ä§Ö §ß§Ñ§Þ §ã§Õ§Ö§Ý§Ñ§ä§î §Ö§Ô§à §Ý§å§é§ê§Ö.

1 §±§â§à§Ò§Ý§Ö§Þ§í §ã §ä§Ú§á§à§Þ §á§à§Õ§Ü§Ý§ð§é§Ö§ß§Ú§ñ §Ú§Ý§Ú §á§â§Ñ§Ó§Ñ§Þ§Ú

§³§Ö§â§Ó§Ö§â §ß§Ñ§ã§ä§â§à§Ö§ß §ß§Ñ §á§à§Õ§Ü§Ý§ð§é§Ö§ß§Ú§Ö §ã §Ú§ã§á§à§Ý§î§Ù§à§Ó§Ñ§ß§Ú§Ö§Þ PSK §Ü §Ñ§Ô§Ö§ß§ä§å, §ß§à §Ñ§Ô§Ö§ß§ä §á§â§Ú§ß§Ú§Þ§Ñ§Ö§ä §ä§à§Ý§î§Ü§à §ß§Ö§Ù§Ñ§ê§Ú§æ§â§à§Ó§Ñ§ß§ß§í§Ö §ã§à§Ö§Õ§Ú§ß§Ö§ß§Ú§ñ

§£ §Ø§å§â§ß§Ñ§Ý§Ö §ã§Ö§â§Ó§Ö§â§Ñ §Ú§Ý§Ú §á§â§à§Ü§ã§Ú (§ã mbed TLS (PolarSSL) 1.3.11)

Get value from agent failed: ssl_handshake(): SSL - The connection indicated an EOF

§£ §Ø§å§â§ß§Ñ§Ý§Ö §ã§Ö§â§Ó§Ö§â§Ñ §Ú§Ý§Ú §á§â§à§Ü§ã§Ú (§ã GnuTLS 3.3.16)

Get value from agent failed: zbx_tls_connect(): gnutls_handshake() failed: \
           -110 The TLS connection was non-properly terminated.

§£ §Ø§å§â§ß§Ñ§Ý§Ö §ã§Ö§â§Ó§Ö§â§Ñ §Ú§Ý§Ú §á§â§à§Ü§ã§Ú (§ã OpenSSL 1.0.2c)

Get value from agent failed: TCP connection successful, cannot establish TLS to [[127.0.0.1]:10050]: \
           Connection closed by peer. Check allowed connection types and access rights

§°§Õ§ß§Ñ §ã§ä§à§â§à§ß§Ñ §á§à§Õ§Ü§Ý§ð§é§Ñ§Ö§ä§ã§ñ §ã §Ú§ã§á§à§Ý§î§Ù§à§Ó§Ñ§ß§Ú§Ö§Þ §ã§Ö§â§ä§Ú§æ§Ú§Ü§Ñ§ä§Ñ, §ß§à §Õ§â§å§Ô§Ñ§ñ §ã§ä§à§â§à§ß§Ñ §á§â§Ú§ß§Ú§Þ§Ñ§Ö§ä §ä§à§Ý§î§Ü§à PSK §Ú §ß§Ñ§à§Ò§à§â§à§ä

§£ §Ý§ð§Ò§à§Þ §Ø§å§â§ß§Ñ§Ý§Ö (§ã mbed TLS (PolarSSL)):

failed to accept an incoming connection: from 127.0.0.1: ssl_handshake():\
           SSL - The server has no ciphersuites in common with the client

§£ §Ý§ð§Ò§à§Þ §Ø§å§â§ß§Ñ§Ý§Ö (§ã GnuTLS):

failed to accept an incoming connection: from 127.0.0.1: zbx_tls_accept(): gnutls_handshake() failed:\
           -21 Could not negotiate a supported cipher suite.

§£ §Ý§ð§Ò§à§Þ §Ø§å§â§ß§Ñ§Ý§Ö (§ã OpenSSL 1.0.2c):

failed to accept an incoming connection: from 127.0.0.1: TLS handshake returned error code 1:\
           file .\ssl\s3_srvr.c line 1411: error:1408A0C1:SSL routines:ssl3_get_client_hello:no shared cipher:\
           TLS write fatal alert "handshake failure"

Attempting to use Áú»¢¶Ä²© sender compiled with TLS support to send data to Áú»¢¶Ä²© server/proxy compiled without TLS

In connecting-side log:

Linux:

...In zbx_tls_init_child()
       ...OpenSSL library (version OpenSSL 1.1.1  11 Sep 2018) initialized
       ...
       ...In zbx_tls_connect(): psk_identity:"PSK test sender"
       ...End of zbx_tls_connect():FAIL error:'connection closed by peer'
       ...send value error: TCP successful, cannot establish TLS to [[localhost]:10051]: connection closed by peer

Windows:

...OpenSSL library (version OpenSSL 1.1.1a  20 Nov 2018) initialized
       ...
       ...In zbx_tls_connect(): psk_identity:"PSK test sender"
       ...zbx_psk_client_cb() requested PSK identity "PSK test sender"
       ...End of zbx_tls_connect():FAIL error:'SSL_connect() I/O error: [0x00000000] The operation completed successfully.'
       ...send value error: TCP successful, cannot establish TLS to [[192.168.1.2]:10051]: SSL_connect() I/O error: [0x00000000] The operation completed successfully.
In accepting-side log:
...failed to accept an incoming connection: from 127.0.0.1: support for TLS was not compiled in

One side connects with PSK but other side uses LibreSSL or has been compiled without encryption support

LibreSSL does not support PSK.

In connecting-side log:

...TCP successful, cannot establish TLS to [[192.168.1.2]:10050]: SSL_connect() I/O error: [0] Success

In accepting-side log:

...failed to accept an incoming connection: from 192.168.1.2: support for PSK was not compiled in

In Áú»¢¶Ä²© frontend:

Get value from agent failed: TCP successful, cannot establish TLS to [[192.168.1.2]:10050]: SSL_connect() I/O error: [0] Success

One side connects with PSK but other side uses OpenSSL with PSK support disabled

In connecting-side log:

...TCP successful, cannot establish TLS to [[192.168.1.2]:10050]: SSL_connect() set result code to SSL_ERROR_SSL: file ../ssl/record/rec_layer_s3.c line 1536: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure: SSL alert number 40: TLS read fatal alert "handshake failure"

In accepting-side log:

...failed to accept an incoming connection: from 192.168.1.2: TLS handshake set result code to 1: file ssl/statem/statem_srvr.c line 1422: error:1417A0C1:SSL routines:tls_post_process_client_hello:no shared cipher: TLS write fatal alert "handshake failure"