Ditto above re arg name. Although I'm not sure if this ought to be writing to a file at all, or just returning the PEM string.