Nginx default website :443 certificate

Discussion in 'Installation/Configuration' started by Sergio W., Aug 7, 2022.

  1. Sergio W.

    Sergio W. Member

    Hi!
    I was investigating on why if a nginx website was not properly configured would be return another website on the same rig. So I found that the default nginx website was not configured to serve on :443, so I uncommented that lines, also the
    Code:
    include snippets/snakeoil.conf;
    part to serve a certificate. Everything works as expected now.
    But... the same file is saying:
    Code:
           # Self signed certs generated by the ssl-cert package
           # Don't use them in a production server!
    
    So, is there a way to solve this and use it on a production server? what consequence could have to run this on a production server?
    Thanks!
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It is safe to use the default on a production server as the lines you referred to are commented out. You can also customize the default vhost template by using conf-custom folder.
     
  3. Sergio W.

    Sergio W. Member

    Thanks @ahrasis the unsafe part was referred to the self-signed certificate part, can you confirm also this is safe... afterall this would only be online if the site is down for some reason.
     

Share This Page