Did you remove the line breaks? Can they be substituted with \n ?
\n
Store the private key in a separate file and pass it in.