Use same implementation as ssh.py for "is in host file" checks in module code, prevents git module from adding keys more than once.
Compile ca certs into a temp file to reduce number of attempts

For those who may have a large number of certs found, this can reduce
the number of ssl connections attempted.