Thank you !
"Dr. Stephen Henson" <[EMAIL PROTECTED]> 23/04/2004 14:38 Veuillez répondre à openssl-users Pour : [EMAIL PROTECTED]@[EMAIL PROTECTED] Hub cc : Objet : Re: signing a file with openssl On Fri, Apr 23, 2004, [EMAIL PROTECTED] wrote: > Hi, > > I am trying to sign a file with openssl : > > openssl rsautl -raw -sign -in coucou1.pdf -inkey gilles.pem -out sig > Enter pass phrase for gilles.pem: > RSA operation error > 30452:error:0406B06E:rsa routines:RSA_padding_add_none:data too large for > key size:rsa_none.c:70: > > I did not find anything clear about this error. My key size is 1024. > > How do you sign files with openssl ? The raw RSA algorithm should not be used for signing files: it can only sign data smaller than the modulus[*]. You can use the appropriate command line options to the 'dgst' command instead. [*] Exactly how much smaller depends on the padding used. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ********************************************************************** Ce message électronique et tous les fichiers attachés qu'il contient sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur,merci de le retourner à son émetteur. Les idées et opinions présentées dans ce messages sont celles de son auteur, et ne représentent pas nécessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales. La publication, l'usage, la distribution, l'impression ou la copie non autorisée de ce message et des attachements qu'il contient sont strictement interdits. Nous vous informons également que nous avons vérifié l'absence de virus dans ce message mais que, malgré ce contrôle, nous ne saurions être tenus pour responsables d'éventuels dégâts occasionnés par un virus non détecté. This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the HAYS plc group or any of its subsidiary companies. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. ********************************************************************** ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]