openssl command line to verify the signature

后端 未结 4 1851
名媛妹妹
名媛妹妹 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条回答
  •  伪装坚强ぢ
    2020-12-24 07:14

    your method is basically correct. What you miss is to tell rsautl that the inut key file file is a public key by add "-pubin". The item "-pubin" OpenSSL rsautl document isn't accurate " -pubin the input file is an RSA public key. " should be " -pubin the input key file is an RSA public key. " Since the input file should be a signature file.

提交回复
热议问题