This is just an example of how the code should look in your server block:
server { # Listen on port 443 listen 443 default_server; server_name example.com; root /path/to/site-content/; index index.html index.htm; # Turn on SSL; Specify certificate & keys ssl on; ssl_certificate /etc/nginx/ssl/example.com/my_certificate.crt; ssl_certificate_key /etc/nginx/ssl/example.com/example.key; # Enable OCSP Stapling, point to certificate chain ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /etc/nginx/ssl/full_chain.pem; }
make sure the certificates match your paths and then save your work.
Check your configuration before rebooting ...
and finally restart or restart Nginx any of the following commands:
sudo service nginx reload
or
sudo service nginx restart
Final step, test your OCSP Stapling at this link to make sure your SSL is working or not:
OCSP Stapling SSL Checker
source share