On Wed, Jan 16, 2008, Fabien Penso wrote:

> Hi,
>
> 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: demo@foobar.com
> To: destination@foobar.com
> 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
time.

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.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Homepage: http://www.drh-consultancy.demon.co.uk
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org