(#21961) Tests for ssl connections without peer verification

This patch adds tests for the newly introduced support for ssl connections without peer verification.