I'm trying to verify a signature.

 

This signature of a document is a very long hexadecimal string, is stored
alone in the signaturefile.txt

pubfirma.pem is the public key corresponding with the private key used to
sign the document

 

I used the next commands to verify the signature:

openssl rsautl -verify -in signaturefile.txt -out output.txt -inkey
pubfirma.pem -pubin

 

openssl rsautl -verify -in signaturefile.txt -inkey pubfirma.pem -pubin

 

I always receive the same answer:

 

unable to load Public Key

 

The public key is a base64encoded certificate, is only a public key, there
is not a private key in the pubfirma.pem

All the files are stored in the same directory where I use the openssl
command.

 

 

I can see the details of the x.509 certificate (the public key) using the
next command:

openssl x509 -in pubfirma.pem -text -noout

 

Any suggestion?

Reply via email to