Silence the SSL API.

Also implements support for the permissive validation modes and
silences log output during certificate validation.