Hello. 

Sorry for my bad English. =)

 

I'm a newbie to openSSL. I'm trying to verify the signature with Win32
OpenSSL 0.97d.

 

At first I wote next code:

 

openssl req -new -newkey rsa:1024 -nodes -keyout ca.key -x509 -days 1000
-subj /C=RU/CN=Lena/[EMAIL PROTECTED] -out ca.crt

 

openssl dgst -sign ca.key -out signature -sha1 file.txt

 

As a result I have a CA private key and CA public key, and a file with
signature.

 
Next,I'm trying to verify signature using following code: 

 

openssl dgst -signature signature -verify ca.crt file.txt

 

but I have a error:

 

unable to load key file

 

Please, help whats wrong?

 

Helen K.

Reply via email to