Get the most out of your Centmin Mod LEMP stack
Become a Member

SSL Moving to new centmin mod server. How to handle SSL?

Discussion in 'System Administration' started by SneakyDave, Jan 23, 2018.

Tags:
  1. SneakyDave

    SneakyDave Member

    79
    14
    8
    Jul 24, 2014
    Ratings:
    +20
    Local Time:
    11:47 PM
    1.0.15
    I have a Comodo SSL cert that expires in March. I'm moving a XenForo site to a new server and I'm curious if it's easy enough to just copy all the certs and key files from one centminmod configuration to the new centminmod server.

    I've been getting the new site tested on the new server, and I've just been changing my hosts file to direct myself to it. Because the original domain is HSTS however, browsers won't direct me to the new SSL location, I assume I need to do some setup yet there.
     
  2. Sunka

    Sunka Well-Known Member

    949
    250
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +411
    Local Time:
    6:47 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I did it before.
    Migrate to new server scenario
    For https, just do that. It should work.
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    32,247
    7,165
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,892
    Local Time:
    3:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    For moving site data there's 2 general guides where the principles & steps of backing up and moving data is the same just slightly different for
    1. Moving Centmin Mod site data to another Centmin Mod server
    2. Moving cPanel/WHM site data to Centmin Mod server
    Those guides move alot more than just the site(s) in question but config files etc. You can use your own best judgement as to the config files and whether you want to move them or just use the fresh server setup Centmin Mod config files as they get auto optimised for the server Centmin Mod initially installed on.
     
    • Like Like x 1
  4. SneakyDave

    SneakyDave Member

    79
    14
    8
    Jul 24, 2014
    Ratings:
    +20
    Local Time:
    11:47 PM
    1.0.15
    I set up a new centminmod server, and recreated the virtual hosts. I was just curious if there were any additional steps with moving certs but I think it was a lot easier than I thought.

    Thanks guys
     
    • Like Like x 2
  5. Sunka

    Sunka Well-Known Member

    949
    250
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +411
    Local Time:
    6:47 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    just bring us a xf2 version of your mods ;)
     
  6. SneakyDave

    SneakyDave Member

    79
    14
    8
    Jul 24, 2014
    Ratings:
    +20
    Local Time:
    11:47 PM
    1.0.15
    lol. that's the next step. Want to get my XF stuff on PHP 7.x first.