Initial support for cacertfile management.
Added tls_checkpeer support.