Allow private key to be a string