allow private key to be set as string or as file path to private key file