OpenSSL SMIME -sign command - file size limits?

View: New views
2 Messages — Rating Filter:   Alert me  

OpenSSL SMIME -sign command - file size limits?

by Fedak, Joe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using the OpenSSL SMIME command to sign files with -outform DER and
-nodetach. However, for files larger than 1MBytes, the output file does
not contain all the data. Does anyone know how I can sign large files?
Need signed data in ASN.1 format.

Thanks

Joe Fedak
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@...
Automated List Manager                           majordomo@...

Re: OpenSSL SMIME -sign command - file size limits?

by Dr. Stephen Henson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, May 15, 2008, Fedak, Joe wrote:

> I am using the OpenSSL SMIME command to sign files with -outform DER and
> -nodetach. However, for files larger than 1MBytes, the output file does
> not contain all the data. Does anyone know how I can sign large files?
> Need signed data in ASN.1 format.
>

I've just tested this on 0.9.8 and it seems to work OK. What OS and version of
OpenSSL are you using?

For anything other than the development version of OpenSSL (which will be
0.9.9 ultimately) all the signed data needs to be held in memory at once.
However 1MB should be easily handleable.

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@...
Automated List Manager                           majordomo@...