Introduction
Websites need to protect data sent between users and servers. SSL directives in nginx help encrypt this data to keep it safe from hackers.
When you want to secure your website with HTTPS instead of HTTP.
When you have an SSL certificate and need to tell nginx where to find it.
When you want to redirect all visitors to use the secure HTTPS version of your site.
When you want to enable strong encryption settings for better security.
When you want to configure nginx to serve encrypted traffic on port 443.