Make sure specified path to a CA cert is a file and not a directory.

As discussed on the IRC with @pquerna.