Fixed handling of ca cert file

I was trying to use your library somewhere where we have an internal CA.  It took me a while to dig through the code and realize that you could only use a ca cert if you were doing client auth.  I separated out the code and simplified to use the ca_file member.  If you'd like me to revert back to the store, I can.  This just seemed simpler to follow.