[vox-tech] mutt ssl certificate problem

Bryan Richter vox-tech@lists.lugod.org
Fri, 5 Mar 2004 17:59:01 -0800


On Fri, Mar 05, 2004 at 04:26:50PM -0800, Ken Herron wrote:
> My next step would probably be to repeat the process while strace'ing 
> mutt, to see if whether any filesystem operations are failing.
> 
> -- 
> "Grand Funk Railroad paved the way for Jefferson Airplane, which cleared
> the way for Jefferson Starship. The stage was now set for the Alan Parsons
> Project, which I believe was some sort of hovercraft." - Homer Simpson
> 
> Kenneth Herron        Kherron@newsguy.com       916-366-7338

Oh yeah, strace has been praised quite often on this list.. shoulda
thought of that. So I did. Looks like all disk accesses are fine.

I stripped out all references to my cert file:

(not sure what it's doin here)
-- snip --
open("/home/b/.mutt/cert", O_RDONLY)    = 4
fstat64(4, {st_mode=S_IFREG|0600, st_size=1123, ...}) = 0
mmap2(NULL, 1123, PROT_READ, MAP_SHARED, 4, 0) = 0x4024e000
close(4)                                = 0
-- snip --

(Here's where it reads the cert.. why doesn't it use it?)
-- snip --
stat64("/home/b/.mutt/cert", {st_mode=S_IFREG|0600, st_size=1123, ...}) = 0
open("/home/b/.mutt/cert", O_RDONLY)    = 5
fstat64(5, {st_mode=S_IFREG|0600, st_size=1123, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4032b000
read(5, "-----BEGIN CERTIFICATE-----\nMIID"..., 131072) = 1123
read(5, "", 131072)                     = 0
close(5)                                = 0
-- snip --

(Here's where it tries to write the cert. A few lines later I can see
the warning message about being unable to save the cert being written 
to stderr)
-- snip --
open("/home/b/.mutt/cert", O_WRONLY|O_APPEND|O_CREAT, 0666) = 5
fstat64(5, {st_mode=S_IFREG|0600, st_size=1123, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4032b000
fstat64(5, {st_mode=S_IFREG|0600, st_size=1123, ...}) = 0
_llseek(5, 1123, [1123], SEEK_SET)      = 0
close(5)                                = 0
-- snip --


And oops! My email-able address was in the snippet of .muttrc I included
with my first email. Oh well, it's only good for another year and a half 
at most, anyway. :-P

-Bryan