I have installed openssl both on my server and client and stunnel
to do the tunneling between them !
In the server i run :
'stunnel -d simap -r imapd -p /usr/local/ssl/pem/stunnel.pem -v 3 '
This meens that my server listens to the simap port and unencrypt
the information and route it to imap port while
using the server self signed ceritificate & verification level
3 !
On the client i run :
'stunnel -c -d imap -r simap -p /usr/local/ssl/pem/stunnel.pem'
When i use on the server the -v option i get an error message :
LOG4[7685:1026]: VERIFY ERROR: depth=0 error=self signed certificate:
/C=PL/ST=Some-State/O=Stunnel Developers Ltd/CN=localhost
LOG7[7685:1026]: SSLv3 read client certificate B
LOG7[7685:1026]: SSLv3 read client certificate B
LOG7[7685:1026]: SSLv3 read client certificate B
LOG3[7685:1026]: SSL_accept: error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no
certificate returned
LOG7[7685:1026]: pop.3 finished (0 left)
how can i solve this problem ???
P.S:
-----
I don't have any certificates under /usr/local/ssl/certs to verify !!!
Should i copy the client certification stunnel.pem to /usr/local/ssl/certs ???
Could this be the problem ???
Is the certificate that i created by 'make cert' in the client is my
client private key and should i copy it to the server
as trusted key ???
Please help -- if you can -- those who already implemented stunnel .
-- Regards , Nissim Penias .