Signatures and certificates
A signature made with a private key lets anyone check with the public key that a message came unchanged from the key holder, and a certificate is a certificate authority's signature binding a domain name to a public key, so a browser trusts a server's key by following a chain of signatures up to a root it already holds.