On Tue, 18 Jan 2000, Tommi Komulainen wrote:
> On Sat, Jan 15, 2000 at 10:51:33PM -0800, Jeremy Katz wrote:
> > I've recompiled cvs mutt with --enable-imap and --enable-ssl (with openssl
> > installed) and all goes fine. ldd of mutt shows that it is linked
> > against libssl correctly. But, after changing my .muttrc to refer to
> > the server as {server:993/ssl}INBOX, mutt still connects to port 143 and
> > doesn't try to do SSL-ized IMAP. Any clues as to what's going on?
>
> Hmm.. strange. Have you tried running it without specifying the port?
> Port 993 is used as default in SSL mode so there's no need to specify
> it explicitly. If that fixes the problem, then I know where to look.
> If not, well...
Actually, I have no clue why it was trying to connect to port 143 at
the time. It is now connecting to 993, but saying it is unable to get
certificate from peer. I have set $certificate file as in README.SSL
and tried both when the file does and when it does not exist, and yet it
still gives this as an error }=\ strace output is below
> It seems that I won't be having much time to develop mutt this spring
> anyway but I'll see what I can do.
:(
strace output:
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
connect(4, {sin_family=AF_INET, sin_port=htons(993),
sin_addr=inet_addr("152.1.2.236")}, 16) = 0
time(NULL) = 948229676
getpid() = 11248
brk(0x80dd000) = 0x80dd000
brk(0x80e2000) = 0x80e2000
getpid() = 11248
getuid() = 500
time(NULL) = 948229676
open("/dev/urandom", O_RDONLY) = 5
read(5,
"\363\240\220\327!\263\35g\335\277\334\323\305\222#\373\302zM\310xr\316\26\216\371D6@\273\23\376",
32) = 32
close(5) = 0
write(4, "\200k\1\3\1\0B\0\0\0
\0\0\26\0\0\23\0\0\n\0\0\7\0\0\5\0\0\4\0\0\25\0\0\22\0\0\t\7\0\300\5\0\200\3\0\200\1\0\200\10\0\200\6\0@\0\0\24\0\0\21\0\0\10\0\0\6\0\0\3\4\0\200\2\0\200\223\304\36bcN\277\230\226\317\3155\302\251^\230\3\336\375\242\327\261\240K\353\27"...,
109) = 109
read(4, "", 7) = 0
write(1, "\7", 1) = 1
write(1, "\r\33[0;1m\17\33[39;49m\33[31mUnable to get certificate from
peer\33[0m\17\33[39;49m\33[K\33[39;49m\33[m\17", 84) = 84
I'm going to try to do some more debugging myself, but not knowing much
about how ssl works, well, it's not overly useful :)
Jeremy
--
Jeremy Katz http://linuxpower.org
Personal: [EMAIL PROTECTED]
School: [EMAIL PROTECTED]
GPG fingerprint: 367E 8B6B 5E57 2BDB 972A 4D73 C83C B4E8 89FE 392D
QOTD:
A fail-safe circuit will destroy others.
-- Klipstein