Does SSL certification have anything to do with the website legitimacy?

No.

You are confusing an SSL / TLS certificate with some kind of standards-compliance certification from either government or industry (ex.: ISO-9000).

A TLS Certificate:

  • Is used only for encrypting connections from one computer to another.
  • Links your public key to your server's domain name so that a web browser knows that it is talking to the correct server.
  • To get it, all you have to do is prove that you own the server and the domain name.
  • The people who give out TLS certificates absolutely do not care what you do with the certificate after you have it (that's not their job).

A standards-compliance certification:

  • Is used for showing that your company is accountable and trustworthy.
  • Shows that the people in your company follow a set of rules in their day-to-day business (either government rules, or industry rules like an ISO certification).
  • To get it, auditors come to your workplace and observe that your people do things according to the rules.
  • Standards bodies will continue to audit your company, and you can lose your certification if you stop following the rules or do something bad.

Assuming OP meant "legitimacy" instead of "legibility":

No, having an SSL certificate does not mean a website is good behaving. It just means you have proved ownership of the domain name.

Now that Let's Encrypt offers free, and easy, to acquire SSL certificates, malvertisements over HTTPS have increased greatly. Source