Can I get SSL on website if it's not hosted on server (before migration)

Discussion in 'Installation/Configuration' started by lonerunner, Jul 24, 2023.

  1. lonerunner

    lonerunner Member

    So I have website hosted somewhere else on cpanel, and I want to migrate the website to another server with ispconfig but before migration, I want to host the website and test it.

    And letsencrypt is failing to create ssl, is it possible to create ssl even though website is hosted on another server and pointing to different NS and IP.
    I tried to add CAA record for letsencrypt, I tried to check on ispconfig server Skip Lets Encrypt Check. The only thing I can think of is copying cert from cpanel to ispconfig manually but I don't know if this is going to make any issues.
    Any suggestions?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    LE certs require that LE is able to access this domain on the new server, that's impossible without pointing the domain to the new server in DNS first. So you can not use LE before you delegated the domain to the new server. What you can do is to create a self-signed SSL cert in this case. Or use an existing SSL key and cert from the system where the site is currently hosted at.
     
    ahrasis likes this.
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I think it may be possible if you use dns challenge, but it is not easy, plus your dns server must be supported and you really know how to do it. As confirmed by @till above, copying SSL certs should work, so do that as it is easier.
     
  4. lonerunner

    lonerunner Member

    Yes, just copying the cert works, I manually input the cert from old server and it's ok now, I can work with it until DNS propagation and then I will generate cert on new server.
     
    ahrasis likes this.

Share This Page