openssl command line to verify the signature

后端 未结 4 1850
名媛妹妹
名媛妹妹 2020-12-24 06:47

Hi I have generated a key pair and used the private key to generate a signature.

openssl rsautl -sign -in helloworld.txt -inkey aa.pem -out sig
4条回答
  •  -上瘾入骨i
    2020-12-24 07:15

    Verify using public key

    echo "plop" > "helloworld.txt"
    openssl rsautl -sign -in hello.txt -inkey private.pem -out sig
    openssl rsautl -verify -in sig -inkey public.pem -pubin
    > plop
    

提交回复
热议问题