Re: openssl smime and performance
On Wed, Jan 16, 2008, Fabien Penso wrote:
> I was wondering if the performance I had for signing emails was
> normal, and how I could improve it. I have the following :
> time for i in `seq 0 100`; do openssl -sign -passin pass:something -in
> /tmp/foobar -text -out /tmp/foobar.signed -signer vserver.crt -inkey
> server.key ; done
> that takes about 17sec on my core 2 duo, is that what I should get ?
> How can I improve it in case of mass emails and need to send 1,000
> mails ?
> the /tmp/foobar file is :
> $ cat /tmp/foobar
> From: [email]firstname.lastname@example.org[/email]
> To: [email]email@example.com[/email]
> Subject: Empty subject for signed
> Mime-Version: 1.0
> This is the body of the mail
> Any hint is welcome.
What key size are you using? If it is something large like 8192 bits it will
take longer. You also have the overhead of running the openssl command each
If the message is the same to many users you can use OpenSSL to create the
signed MIME message once and add headers manuallu each time.
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
OpenSSL Project [url]http://www.openssl.org[/url]
User Support Mailing List [email]firstname.lastname@example.org[/email]
Automated List Manager [email]email@example.com[/email]