[comment]: # translation:outdated

[comment]: # ({fb73521a-fb73521a})
# 1 接続タイプまたは権限の問題

[comment]: # ({/fb73521a-fb73521a})

[comment]: # ({0b784e66-0b784e66})
#### サーバーは PSK を使用してエージェントに接続するように設定されているが、エージェントは暗号化されていない接続のみを受け入れる場合

サーバーまたはプロキシ ログ (*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

[comment]: # ({/0b784e66-0b784e66})

[comment]: # ({ed16b359-ed16b359})
#### 片側は証明書で接続するが、反対側は PSK のみを受け入れる、またはその逆

任意のログ (*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"

[comment]: # ({/ed16b359-ed16b359})

[comment]: # ({16bf8f0a-16bf8f0a})
#### TLS サポートでコンパイルされた Zabbix センダーを使用して、TLS なしでコンパイルされた Zabbix サーバー/プロキシにデータを送信した場合

[comment]: # ({/16bf8f0a-16bf8f0a})

[comment]: # ({01fece69-01fece69})
##### 接続元ログ:

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.

[comment]: # ({/01fece69-01fece69})

[comment]: # ({2cb90759-2cb90759})
##### 受付側ログ:

    ...failed to accept an incoming connection: from 127.0.0.1: support for TLS was not compiled in

[comment]: # ({/2cb90759-2cb90759})

[comment]: # ({aa226719-aa226719})
#### 一方は PSK で接続するが、もう一方は LibreSSL を使用しているか、暗号化サポートなしでコンパイルされている場合

LibreSSL は PSK をサポートしていません。

接続元ログ:

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

受付側ログ：

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

Zabbixフロントエンド:

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

[comment]: # ({/aa226719-aa226719})

[comment]: # ({c03da918-c03da918})
#### 一方は PSK で接続しますが、もう一方は PSK サポートを無効にして OpenSSL を使用している場合

接続元ログ:

    ...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"

受付側ログ:

    ...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"

[comment]: # ({/c03da918-c03da918})
