# 1 Connection type or permission problems

#### Server is configured to connect with PSK to agent but agent accepts only unencrypted connections

In server or proxy log (with *mbed TLS* (*PolarSSL*) 1.3.11)

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

In server or proxy log (with *GnuTLS* 3.3.16)

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

In server or proxy log (with *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

#### One side connects with certificate but other side accepts only PSK or vice versa

In any log (with *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

In any log (with *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.

In any log (with *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"
