I'm having trouble signing a SHA1 string encoded in Base64

Hey @arthurcorre,

The issue is with decoding the private key, It looks like your private key is not a private key and is just a string. Typically a private key would look something like this…

-----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAK.....
xxx.....
-----END RSA PRIVATE KEY-----

If you do provide a valid private key the node appears to work as expected.

1 Like