rsautl

2001-02-26 Thread Aumont
Hi I'am looking for a way to script asymetrical encryption of a named file. rsautl providede that feature but it seems to be outside openssl now (but it is still in the documentation). Is there a another way to do it using openssl command inte

rsautl

2001-03-28 Thread Nathalie Furmento
Hi! I am using rsautl to encrypt some data, and i have a problem with the size of the key. If i am using a key too small, the data will not be encrypted. My problem is i do not know, in advance, the size of the data i have to encrypt. So i would like to generate a key which is available to

Re: rsautl

2001-02-26 Thread Dr S N Henson
Aumont wrote: > > Hi > > I'am looking for a way to script asymetrical encryption of a named file. > rsautl providede that feature but it seems to be outside openssl now > (but it is still in the documentation). Is there a another way to do it > using openssl command

Re: rsautl

2001-03-28 Thread Erwann ABALEA
> > I am using rsautl to encrypt some data, and i have a problem with the > size of the key. If i am using a key too small, the data will not > be encrypted. My problem is i do not know, in advance, the size of > the data i have to encrypt. So i would like to generate a key which &g

RSAUTL -sign

2003-09-08 Thread Andrew Stickland
Hi, Bit of a problem as I'm stuck with RSA signatures... I've got a file containing 128 bytes of data (no CR/LF). The original data was padded (ISO9796-2/1) in order to create this file. When trying to sign this data with rsautl using the following command:- openssl rsautl -in pad

RSAUTL & PASSIN

2003-09-10 Thread Andrew Stickland
Hi, This is really directed at the OpenSSL development but I didn't want to intrude on the core group's work at this time. I've encountered a problem with "openssl rsautl" in that I need to use the sign function and submit the passphrase from another application. On Un

rsautl -sign -pkcs ?

2008-06-01 Thread entity
When I perform "rsautl -sign -pkcs" ..., then I create a siganture according to the PKCS#1 standard. However, the PKCS#1 standard specifies only signatures with appendix, but the command creates an output from which the original text can recovered (using -verify). So what standard

Rsautl decrypt error

2001-03-07 Thread Maxime Dubois
Hi, I am trying to decrypt (verify a signature) some data encrypted by AspEncrypt and put in a tempfile with: openssl rsautl -inkey mycert.key -pubin -verify -in tempfile And I get the following error: RSA operation error 280:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than

rsautl problem [newbie]

2004-01-21 Thread Adolfo Bello
signed documents output by the applet I resorted to "openssl rsautl" to sign the document and compare the result to the one signed by the applet. Here is where my problem is. $ openssl rsautl -sign -raw -in prueba.xml -inkey abbpermarn.priv.pem -out prueba.ssl.sgn Enter pass

openssl rsautl -passin pass:foo

2001-03-20 Thread Aumont
Hi Why the openssl line command "openssl rsautl -decrypt" does not recognize the "-passin pass:foo" syntaxe ? This command need a private key so it could be usefull to allow this way to enter the pass phrass. Wrong ?

Re: rsautl problem [newbie]

2004-01-21 Thread Adolfo Bello
On Wed, 2004-01-21 at 06:59, Adolfo Bello wrote: Sorry for replying to myself. I just realized that I need to use the "dgst" command. Adolfo __ OpenSSL Project http://www.openssl.org User Support

Error engine using rsautl

2010-06-25 Thread Nacho Álvarez
Hello, I am building a PKCS#11 engine to an HSM. When I run: openssl rsautl -sign -inkey -keyform engine -in -out -engine The engine executes the rsa_priv_enc function (I thought the engine would execute rsa_sign, but this is not the problem). The problem is when the rsa_priv_enc ends

How-To encrypt using rsautl ??

2008-06-25 Thread Dan_Mitton
I am trying to encrypt a file using rsautl, but its generating an error. What am I doing wrong?? I create a private key - /usr/local/ssl/bin/openssl genrsa -out rsa-priv.pem 2048 Generating RSA private key, 2048 bit long modulus

Re: rsautl -- does it work?

2000-09-21 Thread Richard Levitte - VMS Whacker
From: Michael Mason <[EMAIL PROTECTED]> michael.mason> I'm using openssl and would like to sign messages using michael.mason> RSA. From the docs, it looks like I'm trying to use michael.mason> "openssl rsautl", but my from-source build of 0.9.5a michael.mason

RE: rsautl -- does it work?

2000-09-21 Thread Michael Mason
> What exactly is the error message? What platform are we talking > about? Sorry, it's Redhat linux 6.2, and openssl-0.9.5a. I've just built 0.9.6-beta3 and the command is included in that version. I'm going to try it out now. Cheers, Mike. __

RE: rsautl -- does it work?

2000-09-21 Thread Richard Levitte - VMS Whacker
From: Michael Mason <[EMAIL PROTECTED]> michael.mason> Sorry, it's Redhat linux 6.2, and openssl-0.9.5a. I've michael.mason> just built 0.9.6-beta3 and the command is included in michael.mason> that version. I'm going to try it out now. That explains it. rsautl

Re: rsautl -- does it work?

2000-09-21 Thread Dr S N Henson
Michael Mason wrote: > > Hi folks, > > I'm new here so feel free to point me at TFM. > > I'm using openssl and would like to sign messages using RSA. From the docs, > it looks like I'm trying to use "openssl rsautl", but my from-source build

RE: rsautl -- does it work?

2000-09-22 Thread Michael Mason
> If by messages you mean "email" then the 'smime' application is best > suited. rsautl is a low level signing and diagnostic utility and its > only in 0.9.6-betas at present. Actually I'm wanting to take a message (a CSV string, as it happens), sha1 hash

Re: Error engine using rsautl

2010-06-25 Thread Dr. Stephen Henson
On Fri, Jun 25, 2010, Nacho lvarez wrote: > Hello, > > I am building a PKCS#11 engine to an HSM. When I run: > > openssl rsautl -sign -inkey -keyform engine -in > -out -engine > > The engine executes the rsa_priv_enc function (I thought the engine would > execut

Queries on rsautl encryption output

2010-09-20 Thread Panikulam Vivek
Hi   I am using the below openssl command to encrypt a string using a public key and get a binary output (symm_key_string_enc.txt). Is this an example of assymetric encryption? and is there a way to get the output in a text/ASCII format? openssl rsautl -encrypt -inkey pub_key.txt -pubin -in

Re: How-To encrypt using rsautl ??

2008-06-25 Thread Marek . Marcola
Hello, [EMAIL PROTECTED] wrote on 06/25/2008 08:59:00 PM: > I am trying to encrypt a file using rsautl, but its generating an error. > What am I doing wrong?? > > I create a private key - > > /usr/local/ssl/bin/openssl genrsa -out rsa-priv.pem 2048 > Generating RSA

Re: How-To encrypt using rsautl ??

2008-06-30 Thread Dan_Mitton
@openssl.org Sent by:[EMAIL PROTECTED] To: openssl-users@openssl.org cc: (bcc: Dan Mitton/YD/RWDOE) Subject:Re: How-To encrypt using rsautl ?? LSN: Not Relevant User Filed as: Not a Record Hello, [EMAIL PROTECTED] wrote on 06/25/2008 08:59:00 PM: > I am trying to encryp

rsautl and smart card PIN on

2005-12-06 Thread Andreas Hasenack
(opensc-0.10.0, openssl 0.9.8a, engine_pkcs11-0.1.3) Hi, I need to feed a PIN via stdin to openssl. The goal is to decrypt a file on disk and feed its result to some other script. I'm unsing this command: echo mypin | openssl rsautl -engine pkcs11 -in key.crypt -inkey 45 -keyform e

RE: Queries on rsautl encryption output

2010-09-20 Thread Dave Thompson
se than useless. Besides SSL see e.g. CMS PGP SMIME. > and is there a way to get the output in a text/ASCII format? > openssl rsautl -encrypt -inkey pub_key.txt -pubin > -in symm_key_string.txt -out symm_key_string_enc.txt Directly in rsautl, -hexdump displays in a form

Using openssl-rsautl for verifying signatures

2022-05-03 Thread Philip Prindeville
6 f6 5d 2a 04 020 bd ef 57 00 024 % openssl rsautl -sign -inkey tests/keys/rsa_key1.key -pkcs -in digest > signing % openssl rsautl -verify -inkey tests/keys/rsa_key1.pub -pubin -pkcs -in signing > digest2 % od -t x1 digest 000 4e 07 b8 c7 aa f2 a4 ed 4c e3 9e 76 f6 5d 2a 04

Any alternative to rsautl for signing ("signaturing") ?

2008-08-19 Thread Jerry Krinock
In the man page for rsautl, OpenSSL 0.9.7l in Mac OS X, I read this "Note" at the bottom: "rsautl because it uses the RSA algorithm directly can only be used to sign or verify small pieces of data." That seems to imply that there is a better alternative to rsautl for

difference between dgst -sign and dgst | rsautl -sign?

2007-03-18 Thread Randolf
Hi! I am having troubles to understand whats the difference between openssl dgst -sha1 -sign and openssl dgst -sha1 -binary | openssl -rsautl -sign The output is completely different and trying to verify one signature produced by one method with the other method brings a padding error

rsautl sign error in the fips-openssl-0.9.8m

2010-03-05 Thread kai_yang2008
Dear All, I have build a fips-openssl based on the fips1.2 and openssl-0.9.8m, But when I use the following command : openssl rsautl -sign -in file -inkey rsakey -out file_sign_pem -keyform PEM, it will produce the errors like this: RSA operation error 21837:error:0408908E:rsa

Re: [EXTERNAL] Using openssl-rsautl for verifying signatures.

2022-05-04 Thread Erwann Abalea via openssl-users
ot;verify", it will only perform the RSA verify operation with PKCS#1v1.5 padding, without checking the validity or even if what has been signed is a DigestInfo structure, and output the result of the RSA operation): openssl rsautl -verify -inkey tests/keys/rsa_key1.pub -pubin -in

Re: [EXTERNAL] Using openssl-rsautl for verifying signatures.

2022-05-05 Thread Philip Prindeville
king the validity or even if what has been signed is a DigestInfo > structure, and output the result of the RSA operation): > openssl rsautl -verify -inkey tests/keys/rsa_key1.pub -pubin -in signing > -asn1parse > openssl pkeyutl -verifyrecover -inkey tests/keys/rsa_key1.pub -pubin -

Re: [EXTERNAL] Using openssl-rsautl for verifying signatures.

2022-05-05 Thread Tomas Mraz
erify", it will only perform the RSA verify operation with > > PKCS#1v1.5 padding, without checking the validity or even if what > > has been signed is a DigestInfo structure, and output the result of > > the RSA operation): > >   openssl rsautl -verify -inkey tests/keys

Re: [EXTERNAL] Using openssl-rsautl for verifying signatures.

2022-05-06 Thread Philip Prindeville
t; >>> signing >>> openssl pkeyutl -inkey tests/keys/rsa_key1.key -in <(openssl dgst >>> -sha1 -binary datatosign) -sign -pkeyopt digest:sha1 > signing >>> >>> and you can display the signature either way (this will not >>> "verify&qu

What is the maximum data size for encrypting with rsautl command?

2011-06-27 Thread ml.vladimbelov
Hello. I tried to encrypt a file(1Mb), with RSA private key of 4096-bit length with command: openssl rsautl -encrypt -pubin -inkey rsapublickey.pem -in 2.txt -out 2.srsa I get next error: Loading 'screen' into random state - done RSA operation error 5616:error:04

How to encrypt .doc file using rsautl command using openssl on windows ?

2010-01-11 Thread bhagyashri . bijwe
Hi, I am trying to encrypt doc file using rsautl but it is giving me error as follows OpenSSL> rsautl -encrypt -inkey public.pem -pubin -in Mydoc.doc -out Myfile.ssl Loading 'screen' into random state - done RSA operation error 1184:error:0406D06E:rsa routines:RSA_padding_add

Re: What is the maximum data size for encrypting with rsautl command?

2011-06-27 Thread Chris Dodd
RSA and prepend that to the encrypted file. -chris On 06/27/2011 09:00 AM, ml.vladimbe...@gmail.com wrote: Hello. I tried to encrypt a file(1Mb), with RSA private key of 4096-bit length with command: openssl rsautl -encrypt -pubin -inkey rsapublickey.pem -in 2.txt -out 2

Re: What is the maximum data size for encrypting with rsautl command?

2011-06-27 Thread Vladimir Belov
Thanks for answer, Chris. I understand that slow RSA algorithm is not used to encrypt large amounts of data, instead of it symmetric algorithms are used. But is it the limit of RSA-algorithm or only OpenSSL library's limit? --

Re: What is the maximum data size for encrypting with rsautl command?

2011-06-27 Thread Michael S. Zick
On Mon June 27 2011, Vladimir Belov wrote: > Thanks for answer, Chris. > > I understand that slow RSA algorithm is not used to encrypt large amounts of > data, instead of it symmetric algorithms are used. > > But is it the limit of RSA-algorithm or only OpenSSL library's limit? > The size of th

RE: What is the maximum data size for encrypting with rsautl command?

2011-06-27 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Michael S. Zick > Sent: Monday, 27 June, 2011 13:07 > On Mon June 27 2011, Vladimir Belov wrote: > > I understand that slow RSA algorithm is not used to encrypt > large amounts of > > data, instead of it symmetric algorithms are used. > > > >

Re: How to encrypt .doc file using rsautl command using openssl on windows ?

2010-01-11 Thread Cristian Thiago Moecke
befor encyprting. I don´t think openssl can do that for you 9not sure, but I don´t think it will). Anyway, you should not use RSA for large files. RSA is too slow for that. 2010/1/11 > Hi, > I am trying to encrypt doc file using rsautl but it is giving me error as > follows > Ope

Re: How to encrypt .doc file using rsautl command using openssl on windows ?

2010-01-11 Thread Shane Steidley
want to encrypt larger things, you should split the file befor encyprting. I don´t think openssl can do that for you 9not sure, but I don´t think it will). Anyway, you should not use RSA for large files. RSA is too slow for that. > > 2010/1/11 >> >> Hi, >> I am trying to