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

...instead of pointers.
could you please visually (empty line) separate logical `:param x:`/`:type x:` pairs from each other to match rest of the existing code? Here and in other occurrences.