Nov-20-2018, 05:41 PM
(This post was last modified: Nov-20-2018, 05:41 PM by gontajones.)
(Nov-20-2018, 05:26 PM)saisankalpj Wrote:(Nov-20-2018, 05:12 PM)gontajones Wrote: Yep, I run this code in mystep 4
and it returnedTrue
.
Yeah but the problem for me is in line 17 i am hard coding the key as “BEGIN PUBLIC KEY ”+ hardcoded key value+”END PUBLIC KEY”. But i am getting false
The key that you are mentioning is a private key, the function needs the public key (and it reads it from file).
Your public key file should looks like:
Output:ssh-rsa AAAAB3N...ns3bhHGhjR6XCJcFik9K/ne+uhSy40Ij user@linux
Another question, how are you generating the signature?