bob has created a private key with
openssl genrsa -out Private.pem 1024
then created the public key with
openssl rsa -in Private.pem -out Public.pem -outform PEM -pubout
he created a file named data.txt with "hello" plain text inside and ran the command
openssl dgst -sha1 -sign Private.pem data.txt| openssl enc -base64 -A > signature.txt
now he sent alice the file data.txt
. The signature.txt
and Public.pem
files.
how can alice verify the authenticity?
thks in advance