openssl connection on a self-cerficated server
<p>I'm performing this command in order to check whether I'm able to create a SSL connection:</p>

<pre><code>openssl s_client -connect private-server:5000
</code></pre>

<p><code>private-server</code> is a server I've set up with a self-generated certificate.</p>

<p>The output is:</p>

<pre><code>CONNECTED(00000003)
140180300502672:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 308 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1467812448
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
</code></pre>

<p>What I need to get the connection right?
Thanks.</p>