A SSL certificate error occurs when a website's SSL certificate is expired or not trusted, preventing secure communication between the server and client.