When your browser identifies an SSL site, it will send a request for the SSL certificate and verify it has not expired, that it was issued by a trusted CA, and is being used by the website it was issued for.
If any of these checks fail, your browser will warn you that SSL does not secure the site.