[SOLVED] SSL in local dev environment?

Discussion in 'Installation/Configuration' started by niemand-glaumy, May 9, 2021.

  1. Hello, me again.

    I'm setting up ISPC on a Oracle VM VirtualBox running ubuntu 20.04. I did the Perfect Server Tutorial for that, but ran into some issues.
    I kinda solved these by:
    I set the local IP 10.0.2.15 in "Server IP Adresses" in ISPC (127.0.0.1 wasn't the correct choice).
    I set "10.0.2.15 v1.cms" in /hosts, as well as for the hostname "dev.domain.cms".

    Websites work now, but I'd like to have them SSL'd, just to have a proper environment. All of this isn't supposed to phone outwards, I just want to play with it on this VM. Any advise/spoonfeeding? :)

    Edit:
    SOLUTION:
    As ahrasis said, log into ISPConfig > Website > Edit > check [v] SSL > switch to "SSL" tab > Add your basic data > on the bottom of the form, choose "create Certificate" > Switch to "Redirect" tab > Check [v] "Rewrite HTTP to HTTPS" > Save.
     
    Last edited: May 9, 2021
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I assumed you mean that it is not connected to the internet?

    If that case is true, select SSL, then go to SSL tab to create self-signed certs for your website(s).

    Otherwise, if it is connected to internet, then try selecting LE SSL, and see how it goes.
     
    niemand-glaumy likes this.
  3. Well, it is connected to the internet, but not supposed to be a live system for external visitations. The domains I use are fake/invalid, so LE SSL doesn't work (I already tried).
    I checked [v] SSL before, didn't switch to the SSL tab, will try that, thanks. :)


    SOLUTION:
    As ahrasis said, log into ISPConfig > Website > Edit > check [v] SSL > switch to "SSL" tab > Add your basic data > on the bottom of the form, choose "create Certificate" > Switch to "Redirect" tab > Check [v] "Rewrite HTTP to HTTPS" > Save.

    Now I just need to get my browser to accept any selfsigned cert that was selfsigned by me. :D
     
    Last edited: May 9, 2021

Share This Page