Clean up SSL work.

Set default CAPATH for Linux
Add ioctl handlers to set CAPATH and CAFILE