Small improvements to HTTPS cert verification
An error display fix and a security robustness improvement.
The fix is that, previously, a set of bit flags was used as a value to look up the error message, resulting in "Unknown error" if more than one bit flag is set (= more than one problem with the cert), now all the errors are logged and the first one is displayed.
Edited by mjk