Do not allow creation of self-signed CA's or certs with key-length of
less than 1024 bits.

If a cert the matching the above criteria is found (either pre-existing
and/or imported) and used for the WebGUI then fall-back to 'http' and throw an alert
specifying this reason to the user.

Fixed a small bug in the http invalid cert alert logic.

Ticket: #6582