Re: [exim] Wildcard Certs

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jakob Hirsch
Datum:  
To: Josh Berry
CC: exim-users
Betreff: Re: [exim] Wildcard Certs
Josh Berry wrote:

> Have tried strace but really, having never used it before, I have no
> idea at all what the output means. Can you point me in the direction of
> a website that tries to explain the output or what sort of thing i will
> be looking for.


No, but it's not that hard:

- telnet 0 smtp
- Attach to the exim process with strace -o exim.strace -p $exim-pid (pid
of the exim process that handles your connection)
- type ehlo world and starttls in your telnet window
- Stop the strace and look into exim.strace.

There should be something like this:

read(10, "starttls\r\n", 8192)          = 10
alarm(0)                                = 298
rt_sigaction(SIGALRM, {0x805d30c, [], 0}, NULL, 8) = 0
open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 3
fstat64(3, {st_mode=S_IFCHR|0444, st_rdev=makedev(1, 9), ...}) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 10) = 1
read(3, "\375\343\362@\217\263\315\347\303\353\34g\235\227\265~"..., 32) = 32
close(3)                                = 0
getuid32()                              = 100
time(NULL)                              = 1139492605
open("/etc/exim/cert", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=1937, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f54000
read(3, "-----BEGIN RSA PRIVATE KEY-----\n"..., 131072) = 1937
read(3, "", 131072)                     = 0
close(3)                                = 0
[...]