Motivation:
The certificate override callback incorrectly cached results on the
SSLContext, instead of the SSLConnection. The result is that it would
only fire once for a given SSLContext, instead of on every connection,
incorrectly caching the result indefinitely.
Modifications:
Move the callback state to SSLConnection
Write tests to validate that the callback is called the right
number of times.
Result:
Better behaviour.