AutoSSL issue with cpnginx

  1. cat /usr/local/nginx/conf/vhost.ssl.d/domainname.com.conf
  2. Add below lines before –  location = /favicon.ico {

    #………….. Cpnginx OCSP stapling protection for security start ………………..
    ssl_stapling on;
    ssl_stapling_verify on;
    ssl_trusted_certificate /usr/local/nginx/conf/ssl.ca.d/gameoncricket.com_ca-bundle;
    resolver 127.0.0.1 8.8.8.8 4.2.2.1 8.8.4.4 4.2.2.2 valid=300s;
    resolver_timeout 5s;
    #………….. Cpnginx OCSP stapling protection for security end…………………..

  3. After above, nginxctl rebuildvhost  domainname.com
  4. check nginx status – systemctl status nginx.service
  5. restart nginx – systemctl restart nginx.service

 

Similar Posts