Do not display warning about ssl certificate validation being disabled if not using https

And add a test for that
Fix #1195