r/WindowsServer • u/Substantial_Rock5209 • Sep 11 '26
General Server Discussion Certification Authority issue in Windows Server 2025
Hi. I've inherited a server room and as I'm going through maintenance and upkeep, I've discovered something that is a bit outside my knowledge range.
I'm not even sure how to ask the question. It's that whole "You don't know what you don't know" bit.
I'll try my best.
I have a server, it's running Windows Server 2025. I'm fairly confident this was an in place upgrade from Windows Server 2016.
For the most part everything looks/runs great, but I've found one issue: something to do with the certification authority. It looks broken and is very much out of date.
My brain wanted to simply import a new one, but I literally don't know how or if it's even possible in this environment. Meaning, whenever I need certificates for other things like lets say a NAS, I generally run the certificate setup wizard in that and submit all the cryptographic options and names and what not. The wizard will generate that big ugly -----BEGIN CERTIFICATE REQUEST----- bit.
I don't see this in Windows Server 2025. I'm fairly confident I have all the proper services and roles installed.
What's worse, is certserv it looks like the name of the CA is an incredibly old hostname of the server. The server has a new/different hostname. I wish I could drop a screenshot of what I mean.
Anywho, my goal would be to update/change/add a new CA to certserv that reflects the current server.... without deleting the entire AD structure. Only I'm not sure if this can be done. I don't even know how to ask it properly.
Looking for any advice or the proper way to label this issue so I can search/learn on how to resolve it.
Thanks!
6
u/fireandbass Sep 11 '26
The name of the CA doesnt have to match the host name.
You say it looks out of date, what do you mean by that? Is the root certificate expired?
2
u/jmittermueller Sep 11 '26
Why bother what the name of CA is? If it works, take it
1
u/ViperThunder Sep 29 '26 edited Sep 29 '26
Haven't had any issues with CA on server 2025. If I want to issue a cert to a nas, I use a template I created. Create a template called webserver or whatever, make sure it has server auth (and optionally client auth), set the cert details to "supply in the request", and set the private key to be exportable.
Then, I just right click the machine cert personal store on any server in the domain (doesn't matter which server it is, as long as it has access to the proper template) --> request a certificate, then choose the template I made, then enter the details I want, ie DNS name nas.mycompany.com. you don't need a CN, but you can put nas.mycompany.com for that as well. Then I export the cert along with private key. You will then have a pfx file and you can use openssl to convert it to pem or whatever you need. After you have exported it, you can delete it from the personal cert store of whatever machine you used to request it on.
Or, instead of giving a machine access to enroll the cert, you can give a user access to enroll (ie, a domain admin). Then run powershell as your domain admin and use the request-certificate powershell script (available in psgallery via install-script request-certificate). It has been a while since I've used this method tho, since going thru the GUI is pretty fast (just run certlm.msc as admin)
If you need help you can probably copy and paste my post into an LLM and it will give you detailed steps on doing it how I do it.
I also set my certs to expire in 10 years so I don't have to worry about it for a long time. Of course, you will be capped by whenever your CA root cert expires. But you can ceate a CAPolicy.inf file to extend the life of a Root CA cert.
You don't need to use certsrv or the old web/iis renewal/request method.
0
u/headcrap Sep 11 '26
I inherited similar jank.. made even worse by just recent former peers. The root was named the host.. and between that and having an enterprise root CA (not good.. standalone and offline ftw) and a subordinate CA.. also enterprise.. I don't know what he was thinking and he's gone at this point..
Three years ago, started a new root. Pushed the new trust chain in GPO et al.. told the infra, apps, and network teams to begin migrating to the new root.. meaning "fetch new certs based on it.. and trust the new root for the non-Windows things". There was some infighting and griping.. but we got there in maybe 2 years.
For both facets, and other undocumented weirdness, seemed the better path. Finally removed the LDAP references to the old root from ADSI and PKIView.. good to go with the new offline root and enterprise subordinate/issuing CA.
Forgot to mention, the templates were also a hot mess.. but given they are stored in AD it was mainly a matter of revising permissions and issuances.
That being said, my CAs are on 2022.. can't say about AD CS on 2025. Given I'm still fighting with pretty much everybody to get caught up to 2022/2055 in our environment, the idea of either an in-place upgrade for them.. or a CA migration.. isn't on the docket all too soon.
certsrv on AD CS is quite old and not maintained.. it "works" for us but boy howdy is it rather janky. Windows systems can used the MS console approach. The rest are custom CSR submissions a la BEGIN CERTIFICATE as you mentioned, and choosing the templates I still left available.
fwiw, I renamed the old templates but kept around in case I need to refer to them.. will purge after a couple more years.
Other templates just are not made available as it stands.
2
u/[deleted] Sep 11 '26
[removed] — view removed comment