Fog computing is a decentralized architecture that processes data and applications closer to end users and IoT devices than cloud computing does. It helps address issues with cloud computing like high latency and low capacity for IoT applications. Fog nodes can be devices like routers, switches and hubs that have some computing and storage capabilities. The paper discusses security and privacy issues with fog computing and possible solutions. It outlines threats like denial of service attacks, eavesdropping, spoofing and man-in-the-middle attacks. Authentication, authorization, and virtualization are identified as areas with security issues, and solutions like public key infrastructure, intrusion detection and certification authorities are proposed.