LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-08-2017, 08:39 AM   #16
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941

Well, one interesting problem is that we're about to switch servers, which means a switch of IP addresses. Right now the domain entries necessarily point to the old servers.

How can I obtain SSL certificates covering the new IP-addresses?

Also: the old servers run a very old version of OS/X – not Linux – and I don't expect that the validation client would run well on them.

We do have control of the last-stage DNS. We should be able to add TXT-entries or whatnot.

What do you folks think is the best way to proceed in this case? I would like to have certs set up on the new boxes before cutover.
 
Old 02-08-2017, 08:42 AM   #17
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by sundialsvcs View Post
How can I obtain SSL certificates covering the new IP-addresses?
letsencrypt certs are issued for the domain name not IP addresses. So it's a non-problem.
 
1 members found this post helpful.
Old 02-08-2017, 09:16 AM   #18
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
To expand on TenTenths answer:

LetsEncrypt does not issue certs for IP addresses:
https://community.letsencrypt.org/t/...main-name/6082

But yes, it is possible to get a cert, from a different CA, for a public IP. However rare:
https://cabforum.org/guidance-ip-add...-certificates/
 
Old 02-08-2017, 01:38 PM   #19
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
All right, ladies and gentlemen, I thank you for this guidance.

So, here's my situation:
  • I can put anything that I want to, for verification purposes and so on, "on the old server." (Which, by the way, controls about 100 different apparently-different web stores.)
  • I don't think I have a ghost of a chance for running LetsEncrypt's preferred client there.
  • The new server is drop-dead easy: Ubuntu LTS.
  • We also control the DNS server, although I don't know how much the gentleman who is in charge of this really knows about the fineries of it, and I haven't personally looked at the tool he uses.
Therefore – recommendations, please. How should I proceed? Start looking seriously at LetsEncrypt's tools on the new machine, and jimmy whatever verification-response is needed on the old one? (DNS? Web content?)

Also, I'm concerned about anything that a tool might try to do "to fiddle with Apache, to set up a virtual host," what have you. I've got a heavily load-balanced multi-whiz-bang thing here and I don't want any tool f*cking with it trying to do anything "clever" with it.

With very little time to "do absolutely the right thing here," I continue to be "grateful in advance." (As in: "priceless.™")

Last edited by sundialsvcs; 02-08-2017 at 01:46 PM.
 
Old 02-08-2017, 02:05 PM   #20
thirdbird
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 20

Rep: Reputation: Disabled
I'd set up the certificates (plain copy from old server) on the new server, where the vhosts will point to them. They are valid for the domains, and the IP doesn't matter. DNS administration is your main task here. Point the domains in question to the new server only when certificates and vhosts on the new server are 100% ready.

Once set up there and things are working, you can start setting up renewal scripts and get that right while sites are up and running. Keeping everything in the default area (/etc/letsencrypt/*) will probably make everything as smooth as possible for you.

Just my .2

Last edited by thirdbird; 02-08-2017 at 02:07 PM.
 
Old 02-08-2017, 04:00 PM   #21
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
... problem being, "the old certificates were not LetsEncrypt," and ... long story ... most of the old sites didn't even have them.
 
Old 02-08-2017, 04:12 PM   #22
thirdbird
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
... problem being, "the old certificates were not LetsEncrypt," and ... long story ... most of the old sites didn't even have them.
Sorry about not registering that. Validation has to happen where the domains are pointed, so there are 2 choices. On the old one or the new one. I'd pick the new one since that's where it has to work - and continue to work. That leaves you with the need for pointing the domains there so you can have LE validate them.

Set up the framework and migrate the sites. If there are databases involved and you're going to export/import. You'll have some downtime anyway. And it practially takes 5 minutes to validate the sites. A DNS zone change is usually majorly reflected within a couple hours. Do all this at night time and I'd say you're golden. Of course I'd make sure to have control of the DNS when doing it, this thing is just about timing.
 
Old 02-08-2017, 08:45 PM   #23
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Okay, then ... "how would you suggest that I go about doing it?" With the DNS, or with content?
 
Old 02-09-2017, 03:39 AM   #24
thirdbird
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
Okay, then ... "how would you suggest that I go about doing it?" With the DNS, or with content?
Like I said, content first, DNS after. So the content is ready when the domain is pointing to it. Once you do the changes in the DNS, you just have to keep spamming DNS lookup from the new server to see when you can authenticate new SSLs.

I'd create a local DNS first and see if the vhosts are configured correctly if you're a bit unsure and want to test the configuration before you go "live". Create the real domains in the local private DNS and have your computer use that DNS for looking up all the domains. It will then try the new server instead, and then you can see if the vhosts works. Be sure to have http/80 vhosts going the first time you authenticate, afterwards you can continue using only SSL.

On my Debian 8 box I did this to set up LE.

I'd be more worried about databases if there are any. Those may require very careful planning, if there are any e-commerce sites in the works. SSL is easier to deal with, even if it fails at first.
 
Old 02-09-2017, 08:54 AM   #25
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Databases and so forth are out there but entirely behind the scenes. They can only be reached through OpenVPN tunnels. (Even on the inside.) Thanks for the info.
 
Old 02-09-2017, 09:57 AM   #26
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Hmmm... I have about 75 domains to validate in a very quick hurry, and all of them actually are served from the same underlying software. Might this be a problem for domain validation? It would be both time-consuming and error prone for me to attempt to modify the <VirtualHost> entries in some way to provide each host with a unique location for the challenge-response file.

It was not quite clear to me what the dns-01 challenge consists of. We do have central control of the DNS server which serves all of these sites. But, once again, it serves all of them at once.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
seeking "best practices" for personal/professional eMail management SaintDanBert Linux - Software 14 12-14-2019 05:19 AM
"Certifications" in context: "friendly, yet battle-won, advice." sundialsvcs General 1 11-24-2014 08:39 AM
seeking "home office" or "small business" server advice SaintDanBert Linux - Server 10 05-04-2014 05:12 PM
Pengy practices the martial art of "GNU" foo caleb star Linux - Hardware 2 01-28-2004 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration