Better error checking on private key and csr.  Also, pull in file names ...

...instead of pointers.
This isn't a line I wrote.