On Thu, 2004-05-20 at 09:15 -0400, Henry Baragar wrote:
> On Thu, 20 May 2004 10:27:56 +0100, Torgeir Veimo <[EMAIL PROTECTED]>
> wrote:
>
> > (resending..)
> >
> > Hi,
> >
> > normal imap (bincimap 1.2.7final) works ok (qmail-ldap installation),
> > but imaps doesn't.
> >
> > [EMAIL PROTECTED] openssl s_client -connect localhost:993 -crlf
> > CONNECTED(00000003)
> > write:errno=104
> >
> > I'm not shure where to start looking.
> What do the logs say?
@4000000040acb2a503e1a50c 25638 0 [EMAIL PROTECTED]:] error
initializing Binc IMAP: SSL negotiation failed: SSL error: unable to use
certificate in PEM file: /var/qmail/control/bincimap.pem:
error:0906D06C:PEM routines:PEM_read_bio:no start line
This must be the problem.. I might have been too smart trying to reuse
the cert file I use for smtp SSL. Also tried certificate created using
make cert in bincimap build directory. They both look like
-----BEGIN RSA PRIVATE KEY-----
[...]
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE REQUEST-----
[...]
-----END CERTIFICATE REQUEST-----
> > Any ideas for what to check?
> >
> How did you create bincimap.pem?
> Does it include the certificate as well as the private key?
> Is it plain text?
> Can you show us your run/xinetd file?
I run 1.2.7final with tiny patch for argparser.cc.
[EMAIL PROTECTED] cat /service/imaps/run
#!/bin/sh
# $Id: run-ssl.in,v 1.1.1.1 2003/08/18 18:06:05 andreaha Exp $
# daemontools supervise run-file for Binc IMAP Service.
exec 2>&1
exec tcpserver -c 100 -u 0 -g 0 \
-l $(hostname) -HDRP \
0 993 \
/var/qmail/bin/bincimap-up \
--logtype=multilog \
--conf=/var/qmail/control/bincimap.conf --ssl -- \
/var/qmail/bin/auth_pop \
/var/qmail/bin/bincimapd Maildir