E-mail encryption
Glenn Steen
glenn.steen at GMAIL.COM
Fri Oct 21 10:25:00 IST 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
On 21/10/05, Leif Neland <mailscanner-user at neland.dk> wrote:
> ...
> > In MailScanner.conf add 2 options:
> > Archive Public Keys = yes
> > Public Key Archive Dir = /var/spool/MailScanner/keys
> > and do
> > mkdir /var/spool/MailScanner/keys
> > and make sure that the "Run As User" can read+write the directory.
> >
> > Then restart MailScanner and it will start generating files in that
> > directory named after the date and the sender address, each containing
> > the data extracted from the message.
> >
> > I hope that all works.
>
> It extracts the key alright, but it is not in a proper base64 encoded .cer
> format
> It is the raw key.
>
> I.e. it lookes like this:
> 0M-^B^E00M-^B^D^X ^C^B^A^B^B^D?¼^B^@0^M^F
> *M-^FHM-^F÷^M^A^A^E^E^@011^K0 ^F^CU^D^F^S^BDK1^L0
> ^F^CU^D
> ^S^CTDC1^T0^R^F^CU^D^C^S^KTDC OCES
> CA0^^^W^M031227160115Z^W^M051227163115Z0s1^K0
> ^F^CU^D^F^S^BDK1)0'^F^CU^D
> ^S Ingen organisatorisk tilknytning190^R^F^CU^D^C^S^KLeif
> Neland0#^F^CU^D^E^S^\PID:9208-2002-2-6898543449640M-^AM-^_0^M^F
>
> But my .cer file looks like this:
> -----BEGIN CERTIFICATE-----
> MIIFMDCCBBigAwIBAgIEP7wCADANBgkqhkiG9w0BAQUFADAxMQswCQYDVQQGEwJESzEMMAoGA1UE^M
> ChMDVERDMRQwEgYDVQQDEwtUREMgT0NFUyBDQTAeFw0wMzEyMjcxNjAxMTVaFw0wNTEyMjcxNjMx^M
> MTVaMHMxCzAJBgNVBAYTAkRLMSkwJwYDVQQKEyBJbmdlbiBvcmdhbmlzYXRvcmlzayB0aWxrbnl0^M
>
> Leif
>
Well that looks like they're stored in DER format. If you'd like them
as PEM, just use openssl x509 to convert them:
openssl x509 -in ./aaa.der -inform DER -out aaa.pem -outform PEM
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list