title: How to redirect to openssl s_server stdin?
body: <p>I'm trying to openssl s_server and s_client connection.</p>
  <pre><code>server : openssl s_server -cert server.crt -key server.key.pem -dtls
  
  client : openssl s_client -cert client.crt -key client.key.pem -dtls
  </code></pre>
  <p>after connection, I can read and write via server console.</p>
  <p>But when I give server input by pipe or fifo, it's do not send the message to the client.</p>
  <code>case 1: FIFO</code>
  <pre><code>fp = popen(&quot;openssl s_server -cert server.crt -key server.key.pem -dtls&quot;, &quot;w&quot;);
  fputs(&quot;hello&quot;, fp);
  </code></pre>
  <code>case 2: redirection</code>
  <pre><code>if server process id is 10000,
  echo hello &gt; /proc/10000/fd/0
  </code></pre>
  <p>in any case, server do not send &quot;hello&quot; to the client!!
  Please help me...</p>