openssl verify signature with priv key?

2007-06-25 Thread Janet N

Hi there,

How do I verify a signature (dsa signature), with the private key using
openssl?

I've tried the following did not work (syntax erro), any help is
appreciated!

openssl rsa -in sigcert.pem -noout -verify -key userkey.pem

unknown option -verify
rsa [options] infile outfile
where options are


Re: openssl verify signature with priv key?

2007-06-25 Thread Marek Marcola
Hello,
 How do I verify a signature (dsa signature), with the private key
 using openssl?
 
 I've tried the following did not work (syntax erro), any help is
 appreciated!
 
 openssl rsa -in sigcert.pem -noout -verify -key userkey.pem
 
 unknown option -verify
 rsa [options] infile outfile
 where options are
You should verify signature with public key.

Best regards,
-- 
Marek Marcola [EMAIL PROTECTED]

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: openssl verify signature with priv key?

2007-06-25 Thread Michael Sierchio

you verify a signature with the public key, and you sign with the private key. 


-Original Message-

From:  Janet N [EMAIL PROTECTED]
Subj:  openssl verify signature with priv key?
Date:  Mon 2007 Jun 25 13:17
Size:  351 bytes
To:  openssl-users@openssl.org

Hi there,

How do I verify a signature (dsa signature), with the private key using openssl?

Ive tried the following did not work (syntax erro), any help is appreciated!

openssl rsa -in sigcert.pem -noout -verify -key  userkey.pem

unknown option -verify
rsa [options] infile outfile
where options are
  

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: openssl verify signature with priv key?

2007-06-25 Thread Janet N

Thanks for the clarification.  So I've tried using pkeyutl to sign data
using a private key then

verify the signature with following command:

openssl pkeyutl -verify -in file -sigfile sig -inkey key.pem

openssl pkeyutl -sign -in file -inkey key.pem -out sig

But I am getting eror pkeyutl is an invalid command:

openssl:Error: 'pkeyutl' is an invalid command.

I am using version : OpenSSL 0.9.8b 04 May 2006


On 6/25/07, Michael Sierchio [EMAIL PROTECTED] wrote:



you verify a signature with the public key, and you sign with the private
key.


-Original Message-

From:  Janet N [EMAIL PROTECTED]
Subj:  openssl verify signature with priv key?
Date:  Mon 2007 Jun 25 13:17
Size:  351 bytes
To:  openssl-users@openssl.org

Hi there,

How do I verify a signature (dsa signature), with the private key using
openssl?

Ive tried the following did not work (syntax erro), any help is
appreciated!

openssl rsa -in sigcert.pem -noout -verify -key  userkey.pem

unknown option -verify
rsa [options] infile outfile
where options are


__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]



Re: openssl verify signature with priv key?

2007-06-25 Thread Janet N

Now I replaced rsautl with pkeyutl and it sucessfully sign the data
using a private key.  But how do I verify the dsa-signature with the public
key?

sign data using private key:
1) openssl rsautl -sign -in sign.txt -inkey userkey.pem -out sig

Verify signature with public key got syntax error:
2) openssl rsautl -verify -in sig -pubin dsacert.pem
Usage: rsautl [options]


On 6/25/07, Janet N [EMAIL PROTECTED] wrote:


Thanks for the clarification.  So I've tried using pkeyutl to sign data
using a private key then

verify the signature with following command:

 openssl pkeyutl -verify -in file -sigfile sig -inkey key.pem

 openssl pkeyutl -sign -in file -inkey key.pem -out sig

But I am getting eror pkeyutl is an invalid command:

openssl:Error: 'pkeyutl' is an invalid command.

I am using version : OpenSSL 0.9.8b 04 May 2006


On 6/25/07, Michael Sierchio [EMAIL PROTECTED] wrote:


 you verify a signature with the public key, and you sign with the
 private key.


 -Original Message-

 From:  Janet N [EMAIL PROTECTED]
 Subj:  openssl verify signature with priv key?
 Date:  Mon 2007 Jun 25 13:17
 Size:  351 bytes
 To:  openssl-users@openssl.org

 Hi there,

 How do I verify a signature (dsa signature), with the private key using
 openssl?

 Ive tried the following did not work (syntax erro), any help is
 appreciated!

 openssl rsa -in sigcert.pem -noout -verify -key  userkey.pem

 unknown option -verify
 rsa [options] infile outfile
 where options are


 __
 OpenSSL Project http://www.openssl.org
 User Support Mailing List openssl-users@openssl.org
 Automated List Manager   [EMAIL PROTECTED]