Hi all. I’m struggling a bit to get ssl to work with my domain in a private hosted zone meant to be used internally and only when on a VPN to gain access.
Public certs obviously won’t work. Private CA would work but is too expensive for what I’m trying to accomplish. I realize that you can take a domain in a public zone and make a private subdomain but I need this to be 100% internal so that’s not possible.
I’ve considered using acm + NLB to potentially achieve a lets encrypt check but this is out as the req is to be truly 100% internal.
SO, before I go and setup my own system with for internal ca provisioning and distribution is there an easier way?
Any suggestions here would be greatly appreciated.
Cheers
You will have to create your own root CA certificate and install it in every system that will use your domain, and the SSL certs for your private domains all use the same root CA.
Browsers in systems without the root CA won’t trust your domain and will complain about insecurity.
Just to get this straight - you want your private domain TroglodyteTechie.yeet to run a certificate with correct subject alternative name signed by a publicly trusted CA? I think that’s a bit of a contradiction and won’t make any sense, no decent public CA can verify you indeed own the domain and aren’t making up a random name - but if you create your own custom CA and sign your private domain with that CA you can at least have working certificates - no one will trust them but why should that be important with a private domain anyway.
Yes and no. I have no intention of a publicly trusted CA signing my CA. This is for internal use only, but ideally without running into the TLS errors when going to TroglodyteTechie.yeet when coming in over the secured connection.
It was looking like I’d have to distribute my own CA but I wanted to see if there was a better way before committing to it.
I wouldn’t bother with it if Iframes weren’t part of the equation. If the cert was self signed and I was in a browser I could just hit proceed anyway. But when you have an iFrame in a native application you have to have a proper cert as there’s not really a bypass.
I think an alternative would be dropping https and targeting a load balancer with a static ip in lieu of a domain for a consistent endpoint. But then I’d be losing some of the benefits of the aforementioned setup.
It is a fundamental principle of SSL/TLS that the CA associated with any secure website is known to the calling party - so yeah, if you really must “TroglodyteTechie.yeet” you will have to issue your own CA.
Why dont you have a subdomain of a legitimate resolvable domain. The route 53 subdomain itself doesn’t have to be publicly resolvable for an ACM cert, just as long as you validate via email at a higher level domain
You could use a self signed certificate, or even build your own private ca using openssl and use that to sign your certificate requeat. It’s a lot eaier to just get a public CA signed cert. You don’t have to expose your private DNS records Just prove to the public CA that you own the domain. If you use an ALB, you can get AWS Public CA to provide a cert for you in ACM.
I’ve been playing with that idea. The problem is the security constraints I’m under. But a locked down public zone with no access to it with the exception of the CNAME + ALB for acm certification miiiight work.
Make a public hosted zone for the domain with the proper records for ACM to auto-verify ownership and create an associated private zone for the same domain. Nothing has to be in the public zone except the DNS records. Then you can use the ACM cert for any services in AWS that support ACM certs.
The drawback is it only works with services that directly support ACM you won’t be able to export it and use it outside of ACM-integrated services. You also, obviously, need to own the domain name used in the cert and the public zone. If you need a truly portable cert you’ll need to create your own CA and distribute it, as you have surmised.
If your private domain is also a valid public domain which you own, you can actually just provision public certs as normal and stick them on the internal infra. I have done this before when we wanted internal tls and having public dns mirroring internal was not judged to be a risk. The public domains don’t need to resolve to anything,you just need to prove ownership of them
I’m aware. But with an entirely private setup it’s not possible no? I was trying to make this work with the constraints I’m under. But I do think that a public hosted zone setup solely for ACM verification is the path of least resistance.
We almost always end up with a real domain, real DNS records and ACM with an NLB or ALB since the maintenance burden of anything else just doesn’t come with the same ROI.
The only cases where we don’t is when we can do certificate distribution with Let’s Encrypt; this requires some DNS records to be public, but since we almost never use a naked domain internally we don’t mind, it’s not going to have exposed records anyway, or if it does, the exposed records are of no value to an attacker.
One solution is to use lets encrypt with amazon managed route53 TXT records. While it’s technically ‘public domain’ knowledge, nobody can realisticly detect your private IP addresses unless they guess the DNS names.. And if you use a good randomized pattern, there’s no good way for someone to do so.. And even if they do - they’re detecting private IP addresses (10.0.x.y), so as long as your VPC is fully private and not routed to/from internet there’s no possible harm that can come from it.
Yes it’s a risk, but the alternative is a really really expensive internet private CA.
This is how I run my home server setup, and it works perfectly fine. Professionally we go the PCA and distribute CA cert route. I don’t know of any other option than those two.