On Thu, 20 Nov 2003 [EMAIL PROTECTED] wrote:
>Hi, I am still getting a bunch of weird errors when trying to get imap
>ssl to work on FreeBSD 4.8 fro mthe ports tree.  Plain imap works, but
>with ssl, I get this error:
>www# openssl s_client -connect myip:993 -crlf
>84982 0 [EMAIL PROTECTED]:] Client connected to Binc IMAP from myip
>84981:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
>protocol:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/

This sequence of commands creates a test cert that works for me. The
file is "bincimap.pem". See if this works for you:

openssl req -newkey rsa:1024 -keyout key.tmp -nodes -x509 \
-days 365 -out cert.tmp \
&& cat key.tmp > bincimap.pem \
&& echo "" >> bincimap.pem \
&& cat cert.tmp >> bincimap.pem \
&& rm key.tmp cert.tmp

Andy :-)

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."

Reply via email to