What a certificate actually proves
An SSL/TLS certificate binds a public key to a domain name. When your browser connects, it verifies the server holds the matching private key and that a trusted Certificate Authority (CA) signed the certificate. That's how the padlock appears.