title: secure client/server program in C with OpenSSL
body: <p>I'm trying to write a secure client/server program in C with OpenSSL. 
  I've found a code sample at <a href="http://www.rtfm.com/openssl-examples/" rel="nofollow noreferrer">http://www.rtfm.com/openssl-examples/</a> but I get this error:
  server: SSL read problem
  client: Certificate doesn't verify</p>
  
  <p>I think the problem is with the certificate generation, but I cannot find it. </p>
  
  <p>Any idea?</p>
  
  <p>Thanks</p>