> > I have an ssl server. Really simple;
> > 
> >     // init
> >         SSL_library_init();
> >         SSL_load_error_strings();
> >         bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
> >         meth = SSLv23_server_method();
> >         ctx = SSL_CTX_new(meth);
> >         SSL_CTX_use_certificate_chain_file(ctx, 
> > "/home/folkert/Personal/src/server.pem");
> > 
> >     // accept
> >     socket_h_from = accept();
> >         sbio = BIO_new_socket(socket_h_from, BIO_NOCLOSE);
> >         ssl_h_from = SSL_new(server_ctx);
> >         SSL_set_bio(ssl_h_from, sbio, sbio);
> >         int rc = SSL_accept(ssl_h_from);
> > 
> 
> You need to include a private key.

Darn! Yes, that is the solution.
Thanks a lot!


Folkert van Heusden

-- 
www.biglumber.com <- site where one can exchange PGP key signatures 
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to