A PostgreSQL server can present a different TLS certificate based on the hostname a client connects to. Hostnames are mapped to certificates and keys in pg_hosts.conf. For more information, see SNI.
pg_hosts.conf