improved ssl cert test to fail on the same thing that https connection fails on