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

...instead of pointers.
Could you please use [EAFP](https://docs.python.org/2/glossary.html#term-eafp) instead of those checks?