How is a TLS certificate authenticated, down to a code level? [duplicate]

I am having trouble to understand how a TLS certificate is authenticated.
From what I read, a server’s leaf certificate contains:

Server domain name
Server public key
Issuer (CA) domain name
Issuer (CA) signature of this certificate

How … Continue reading How is a TLS certificate authenticated, down to a code level? [duplicate]