Allow reading of private key from a string instead of a file