SSL certificates work in computer networking by using public key cryptography to establish a secure connection between a client and a server. When a client tries to establish a connection, the server sends its SSL certificate, which contains the server's public key. The client then uses this key to encrypt data sent to the server. The server then uses its private key to decrypt this data ensuring communication is kept secure.