Migrating an old non-MS Cert Authority to a new CA in AD

5 views
Skip to first unread message

Michael Leone

unread,
Jun 11, 2019, 1:15:22 PM6/11/19
to NTSysAdmin
As I mentioned in anoher thread, I have a Linux based CA that I've been using to issue certs. And while I don't have a problem with it (i'm old, command line doesn't scare me), the other guys here seem to think command line indicates antique. <sigh>

Plus, my CA is so old, it's not even issuing SHA2 certs.

So here's my question. If I deploy a CA from a windows box, it appears that I can import the private key from my existing CA. If I do so, will it still have the same name as my old CA? What will importing that private key do for me, in this set of circumstances?

I know I will get a new root CA cert, that's fine. And once that happens, I should be able to renew cert requests from my other existing servers, but now will be issuing newer, shinier certs. LOL (well, ones with SHA2 and hopefully Subject Alternate Names ...

I don't have a test environment to do this, so any CA I roll out will be in my AD (I think, if I understood it all correctly). So best to ask before I start ...






--

Michael J. Leone, <mailto:tur...@mike-leone.com>

PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Photo Gallery: <http://www.flickr.com/photos/mikeleonephotos>

Just backpacking through the Uncanny Valley ....

Michael B. Smith

unread,
Jun 11, 2019, 1:51:21 PM6/11/19
to ntsys...@googlegroups.com

You can completely control the Windows CA from the command line if you want. J

 

Certutil.exe and certreq.exe.

 

Some things are MUCH easier to do in the GUI though.

 

You can import a private key from another Windows CA (as part of the migration process). And as long as it has the proper EKU, I guess it could be from a Linux CA, but you wouldn’t have all the necessary registry settings to actually make it a “clone” or “migration” of the Linux CA.

 

I wouldn’t recommend it without testing it extensively in a lab. I doubt what you seem to want to do (migrate from a Linux CA to a Windows CA) is supported. In fact, as I go through the various steps in my head, I’m certain it isn’t supported. Absent anything else, there would be no way for the Windows CA to attest to a CRL or to attest to the validity of a specific cert from the old CA.

 

What kind of certs are generated by a Windows CA is configuration dependent. It can generate shiny new certs or old polished certs and anything in-between.

 

I strongly recommend you put the CA on a standalone server.

 

Thanks.

 

Regards,

Michael B.

--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2BiMaU_YMNrTbT7qntB8DQFAMvU-642quEYQqcGUQoUXyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Michael Leone

unread,
Jun 11, 2019, 2:15:28 PM6/11/19
to NTSysAdmin
On Tue, Jun 11, 2019 at 1:51 PM Michael B. Smith <mic...@smithcons.com> wrote:

You can completely control the Windows CA from the command line if you want. J

 

Certutil.exe and certreq.exe.

 

Some things are MUCH easier to do in the GUI though.


True.
 

 I wouldn’t recommend it without testing it extensively in a lab. I doubt what you seem to want to do (migrate from a Linux CA to a Windows CA) is supported. In fact, as I go through the various steps in my head, I’m certain it isn’t supported. Absent anything else, there would be no way for the Windows CA to attest to a CRL or to attest to the validity of a specific cert from the old CA.



Yeah, I would have been really surprised if it was ...the more I think about it, the more I would probably need to generate new requests from all the old clients, and get new certs. And I'd need the old CA around until all the clients get the new certs, I'm guessing.

 

I strongly recommend you put the CA on a standalone server.



Oh? Not on a domain member server? Why not? 

I would need to name the new CA something slightly different than the old CA, but otherwise, this shouldn't be too much of an issue, right? The old certs will still authenticate back up to the old CA, and when they issue a new request, and the new CA signs it, it will authenticate back up to the new CA cert. So as long as both CA certs are in the Trusted Root store, I should be good to go.


Michael Leone

unread,
Jun 11, 2019, 2:25:31 PM6/11/19
to NTSysAdmin
On Tue, Jun 11, 2019 at 1:51 PM Michael B. Smith <mic...@smithcons.com> wrote:
 

I strongly recommend you put the CA on a standalone server.


Did you mean on a server not joined to the domain, or did you mean to create a standalone CA, in the setup of a new CA?

 

Michael B. Smith

unread,
Jun 11, 2019, 2:26:58 PM6/11/19
to ntsys...@googlegroups.com

Sorry. Domain member is fine. In fact, I recommend that, for the AD integration.

 

I meant don’t put it on a DC, or a SQL server, or an Exchange server, or a Remote Desktop Session Host, etc.

 

You need the old CA around as long as any certs it generated are still in use.

 

A CA has several names. There is the name of the computer on which it is hosted (attribute ‘name’), there is the dnsName of the computer on which it is hosted (attribute ‘dnsName’), and there is the name of the CA itself (attribute ‘cAName’).

 

The middle one has to be unique in DNS. The other two don’t matter so much. The uniqueness you are likely referring to is held (by AD) as cACertHash – the hash of the CA certificate. And if you were hosting multiple CAs within a single AD forest (which is perfectly legal), each CA would require a unique cAName.

 

Thanks.

 

Regards,

Michael B.

 

From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Michael Leone


Sent: Tuesday, June 11, 2019 2:15 PM
To: NTSysAdmin

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

Michael B. Smith

unread,
Jun 11, 2019, 2:28:32 PM6/11/19
to ntsys...@googlegroups.com

Nah, create an enterprise CA. Again, for the AD integration.

 

Thanks.

 

Regards,

Michael B.

 

From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Michael Leone


Sent: Tuesday, June 11, 2019 2:25 PM
To: NTSysAdmin

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

Michael B. Smith

unread,
Jun 11, 2019, 2:29:49 PM6/11/19
to ntsys...@googlegroups.com

Michael Leone

unread,
Jun 11, 2019, 2:36:14 PM6/11/19
to NTSysAdmin
On Tue, Jun 11, 2019 at 2:26 PM Michael B. Smith <mic...@smithcons.com> wrote:

I meant don’t put it on a DC, or a SQL server, or an Exchange server, or a Remote Desktop Session Host, etc.



Ah, OK. No, I'd roll out a new Win 2016 VM dedicated solely to this task.

  

You need the old CA around as long as any certs it generated are still in use.



Yeah, no worries there.

 

A CA has several names. There is the name of the computer on which it is hosted (attribute ‘name’), there is the dnsName of the computer on which it is hosted (attribute ‘dnsName’), and there is the name of the CA itself (attribute ‘cAName’).

 

Ah, I see. OK, so in my case,  the cAName itself I would cunningly call something like "Internal-CA". LOL

Michael B. Smith

unread,
Jun 11, 2019, 2:42:20 PM6/11/19
to ntsys...@googlegroups.com

If I were to make a sole suggestion regarding naming – don’t include the name of the server in the CA name. And maybe not the name of the company.

 

Those damn things (CAs) either last less than 6 months or they last forever. I’ve got CAs at some clients that have been around for 20 years and are on their 4th or 5th hardware iteration… Most of them are still named after the first server they were installed on.

 

Thanks.

 

Regards,

Michael B.

 

From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Michael Leone
Sent: Tuesday, June 11, 2019 2:36 PM
To: NTSysAdmin
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

On Tue, Jun 11, 2019 at 2:26 PM Michael B. Smith <mic...@smithcons.com> wrote:

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

Kurt Buff - GSEC, GCIH

unread,
Jun 11, 2019, 3:07:40 PM6/11/19
to ntsys...@googlegroups.com

Michael B. Smith

unread,
Jun 11, 2019, 3:09:10 PM6/11/19
to ntsys...@googlegroups.com
Yep, those. :-)

Thanks.

Regards,
Michael B.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CADy1Ce6JO3h70XiTG75Wz0VsREecsgZSs%3DVcvgC1msQqcmZb7Q%40mail.gmail.com.

Michael Leone

unread,
Jun 11, 2019, 3:21:37 PM6/11/19
to NTSysAdmin
On Tue, Jun 11, 2019 at 2:42 PM Michael B. Smith <mic...@smithcons.com> wrote:
Oh, agreed. I would never put the hostname in the actual CA name. I think I will put the organization name - my old CA name was "PHA internal Certificate Authority", so maybe make the new one "PHA Root Certificate Authority". ("PHA" are the initials of the organization).
 

Those damn things (CAs) either last less than 6 months or they last forever. I’ve got CAs at some clients that have been around for 20 years and are on their 4th or 5th hardware iteration… Most of them are still named after the first server they were installed on.


LOL 

Michael Leone

unread,
Jun 11, 2019, 3:32:55 PM6/11/19
to NTSysAdmin
On Tue, Jun 11, 2019 at 2:28 PM Michael B. Smith <mic...@smithcons.com> wrote:
Huh. According to Kurt's links:

The standalone offline root CA should not be installed in the domain. As a matter of fact, it should not even be connected to a network at all.

Yeah, I don't think I'm doing that. I think running on a domain-joined member server should be fine. I have no need for it to be offline. And I get that there are separate root and issuing CAs. Again, I think a bit too much complexity for what I need to do.

CR Hiestand

unread,
Jun 11, 2019, 3:39:04 PM6/11/19
to ntsys...@googlegroups.com
Use Server 2019 if possible. 

--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile

Michael Leone

unread,
Jun 11, 2019, 3:40:51 PM6/11/19
to NTSysAdmin
On Tue, Jun 11, 2019 at 3:39 PM CR Hiestand <cr.hi...@gmail.com> wrote:
Use Server 2019 if possible. 

Why? What will that give me, that 2016 won't?
(I have no 2019 in my environment. In fact, I still have to upgrade my forest/domain function levels from 2008 R2 to 2012 R2; I keep forgetting to do that, because we aren't using anything that wanted the higher level.  .. or didn't used to, anyway)

Kurt Buff - GSEC, GCIH

unread,
Jun 11, 2019, 3:48:09 PM6/11/19
to ntsys...@googlegroups.com
Don't.

The root CA should be kept powered off, unless and until you need to
renew the cert for the issuing CA. This is basic security 101.

Seriously - keep your root CA out of the domain, and powered off.
https://en.wikipedia.org/wiki/Offline_root_certificate_authority

Kurt
> --
> You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
> To post to this group, send email to ntsys...@googlegroups.com.
> Visit this group at https://groups.google.com/group/ntsysadmin.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2BheLnHzqoroa_FMTfPzR6o36AoXHndvtCW7T0036jiMeQ%40mail.gmail.com.

Michael B. Smith

unread,
Jun 11, 2019, 4:03:26 PM6/11/19
to ntsys...@googlegroups.com

3 more years.

 

And faster patching.

 

Thanks.

 

Regards,

Michael B.

 

From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Michael Leone
Sent: Tuesday, June 11, 2019 3:41 PM
To: NTSysAdmin
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

On Tue, Jun 11, 2019 at 3:39 PM CR Hiestand <cr.hi...@gmail.com> wrote:

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

Michael B. Smith

unread,
Jun 11, 2019, 4:05:00 PM6/11/19
to ntsys...@googlegroups.com

Best practice is an offline root.

 

There is no question it adds a significant additional layer of complexity and that many people aren’t willing to do spend that effort.

 

You aren’t paying me for my opinion so I won’t give you one. J

 

Thanks.

 

Regards,

Michael B.

 

From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Michael Leone
Sent: Tuesday, June 11, 2019 3:33 PM
To: NTSysAdmin
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

On Tue, Jun 11, 2019 at 2:28 PM Michael B. Smith <mic...@smithcons.com> wrote:

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

Michael Leone

unread,
Jun 11, 2019, 5:22:17 PM6/11/19
to NTSysAdmin
On Tue, Jun 11, 2019 at 4:05 PM Michael B. Smith <mic...@smithcons.com> wrote:

Best practice is an offline root.

 

There is no question it adds a significant additional layer of complexity and that many people aren’t willing to do spend that effort.

 

You aren’t paying me for my opinion so I won’t give you one. J


 I've got a pretty good idea you'd fall into the "aye" column. :-)

Dennis Pinckard

unread,
Jun 11, 2019, 5:48:06 PM6/11/19
to ntsys...@googlegroups.com

In my opinion, this is one of those areas that, as an enterprise, you want to build it like an enterprise.  At least a two-tier CA.

Kurt's links are great resources and building the CA's aren't hard, they are just easy to screw up the first dozen times!  Be wary of most web based walkthroughs.  They are almost all "not for production" posts that just accept the defaults.  Don't do that. A lot of the settings with your CA's you only get once chance.  Mess it up and you rebuild it all from scratch.

Use Server 2019 and get the additional years of support.  A CA should last you 10 years at least, make sure it's supported for most of its lifespan.

Build in a lab first, then tear it down and do it again.  Repeat until you understand all of the settings you need to configure.

Build a non-domain joined Root CA.  It's a best practice for a reason.

Build your issuing CA(s).  Depending on the size of your org, it may be worth it to build one for servers, one for workstations, one for users, one for non-windows gear, or a combination of any of these.

I'll add a link to Kurt's list:

    https://777notes.wordpress.com/2016/07/11/certificates-the-dos-and-donts-of-pki/    It's a copy of the original author's post, which is no longer available.  Just keep in mind it is from 2012.

There's no need to migrate your old CA keys/name/etc to the new one.  You can have multiple CA's in your environment, you just need to trust them.  I would remove the templates from the old CA (Google how to prevent your CA from publishing new certs).  Review the issued certs and re-issue them from the new CA.  Once all of your certs have been re-issued and REVOKED on the old CA, you can turn it off and remove any root certs from your cert stores.

--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

CR Hiestand

unread,
Jun 11, 2019, 6:19:24 PM6/11/19
to ntsys...@googlegroups.com
Fixed patching alone should make 2019’s case for itself. 

As others mentioned: longer support window. I can’t think of any reason not to deploy 2019 at this point for a CA role. 

--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

For more options, visit https://groups.google.com/d/optout.

Heaton, Joseph@Wildlife

unread,
Jun 11, 2019, 6:21:43 PM6/11/19
to ntsys...@googlegroups.com

Plus the STIG for 2019 just came out, so you can tighten it down.

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of CR Hiestand
Sent: Tuesday, June 11, 2019 3:19 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

Fixed patching alone should make 2019’s case for itself. 

Michael B. Smith

unread,
Jun 11, 2019, 6:26:10 PM6/11/19
to ntsys...@googlegroups.com

 

From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Dennis Pinckard
Sent: Tuesday, June 11, 2019 5:48 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

In my opinion, this is one of those areas that, as an enterprise, you want to build it like an enterprise.  At least a two-tier CA.

Michael Leone

unread,
Jun 12, 2019, 11:14:06 AM6/12/19
to NTSysAdmin
Quite honestly, from looking at everything that needs to be done, I'm almost tempted to just create a new CA on a new Linux VM; That's what I have now, and have used, for the last 9 years.

I get that the whole offline CA, issuing CAs, etc structure is best practice PKI. And if we had staff here besides me who even knows that we have a CA, much less what it's used for and how to use it, then I would think about going that route. But since in all likelihood I will be the only one of us who will know how to manage it, I might just go the simple route.

First I have to upgrade the forest and domain level to WIn 2012 R2 (which is easy enough; I've done all the prereqs, I just haven't actually issued the comand). Then, since we use a root/child domain structure (which I would dearly love to collapse down to the single domain that we really only need), I'd have to install the CA into the root domain (since CAs install into a forest, not a domain). I don't know what aggravations that may cause, if I want to issue certs from it.

What do I need to be aware of, installing a CA into a parent/child domain structure, but really only issuing certs for servers in the child domain?



For more options, visit https://groups.google.com/d/optout.

Michael B. Smith

unread,
Jun 12, 2019, 11:26:41 AM6/12/19
to ntsys...@googlegroups.com

 

Thanks.

 

Regards,

Michael B.

 

From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Michael Leone
Sent: Wednesday, June 12, 2019 11:14 AM
To: NTSysAdmin
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

Quite honestly, from looking at everything that needs to be done, I'm almost tempted to just create a new CA on a new Linux VM; That's what I have now, and have used, for the last 9 years.

Robert ECEO Townley

unread,
Jun 12, 2019, 11:27:36 AM6/12/19
to ntsys...@googlegroups.com
I would second keeping the root CA on Linux, but to keep the ultimate root certificate offline on an USB key or encrypted offline virtual disk or even having that whole machine powered down until new intermediate certificates need to be issued.  There are many web-based GUI interfaces to Linux Certificate Authorities.   DogTag used in RHELs IPA comes to mind. 

Robert ECEO Townley

unread,
Jun 12, 2019, 11:30:39 AM6/12/19
to ntsys...@googlegroups.com
Forgot to mention that one of the intermediate CAs can be a domain joined Windows server or another Linux intermediate CA or both.

Dennis Pinckard

unread,
Jun 12, 2019, 3:08:29 PM6/12/19
to ntsys...@googlegroups.com

As a former RHCE and Linux user for 25-ish years, I'm all for using Linux.  BUT, I would ask that you look where are you going to use your certificates.  If it is primarily on Windows machines, I think making your issuing CA a Windows CA is the better move.  Make your root CA a linux box with a 4096-bit, SHA256 cert.  Have it generate a cert for your domain-joined Windows Issuing CA and move forward.

Honestly, standing up a two-tier Windows CA is a few hours worth of work.  (It's just a lifetime of research and prep!)

Keep an eye on what you MIGHT use the CA for as well.  There's a lot of Microsoft features and services that use certs and auto-enrollment is definitely the way to go.  I've never set up a Linux CA to serve Windows users and desktops, so I'd be curious how it would operate and be managed in that scenario.

Some final words of advice:

If you want to do it "by the book", get your own OID and use that on your root CA. Even if you don't think you need this level of attention to detail, it's a simple, free exercise and you are set for the future.

Don't publish your CRL to AD/LDAP.  Just use HTTP.  Say you issue a cert to a Cisco switch.  Can that switch access AD/LDAP to look it up?  Probably not.  At best it will timeout and delay looking up via HTTP.

Don't forget about CA server maintenance.  We have an old CA that has a HUGE database.  So huge the MMC console won't open.  No one seems to talk about the routine maintenance that a CA server requires.  I've recently built a Powershell script that is scheduled on the new CA to keep it lean.

Melvin Backus

unread,
Jun 12, 2019, 3:14:56 PM6/12/19
to ntsys...@googlegroups.com

Can you enlighten us on the maintenance aspect? Perhaps a link to “The Care and Feeding of Windows CAs” so to speak?

 

--
There are 10 kinds of people in the world...
         those who understand binary and those who don't.

 

¯\_()_/¯

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Dennis Pinckard
Sent: Wednesday, June 12, 2019 3:08 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

As a former RHCE and Linux user for 25-ish years, I'm all for using Linux.  BUT, I would ask that you look where are you going to use your certificates.  If it is primarily on Windows machines, I think making your issuing CA a Windows CA is the better move.  Make your root CA a linux box with a 4096-bit, SHA256 cert.  Have it generate a cert for your domain-joined Windows Issuing CA and move forward.

Michael Leone

unread,
Jun 12, 2019, 3:19:59 PM6/12/19
to NTSysAdmin
On Wed, Jun 12, 2019 at 3:08 PM Dennis Pinckard <ntsys...@doomsdaypig.com> wrote:

As a former RHCE and Linux user for 25-ish years, I'm all for using Linux.  BUT, I would ask that you look where are you going to use your certificates.  If it is primarily on Windows machines, I think making your issuing CA a Windows CA is the better move.  Make your root CA a linux box with a 4096-bit, SHA256 cert.  Have it generate a cert for your domain-joined Windows Issuing CA and move forward.


That is what I was thinking, yes. Root CA on a Linux VM, issuing CA on a Win2016 VM.
 

Honestly, standing up a two-tier Windows CA is a few hours worth of work.  (It's just a lifetime of research and prep!)


It's the "lifetime" of research that I don't have available. :-)
 

Don't publish your CRL to AD/LDAP.  Just use HTTP.  Say you issue a cert to a Cisco switch.  Can that switch access AD/LDAP to look it up?  Probably not.  At best it will timeout and delay looking up via HTTP.


We might be issuing certs to some Cisco equipment (ACI, UCP, but not plain switches, I don't think.. Still, good advice.
 

Don't forget about CA server maintenance.  We have an old CA that has a HUGE database.  So huge the MMC console won't open.  No one seems to talk about the routine maintenance that a CA server requires.  I've recently built a Powershell script that is scheduled on the new CA to keep it lean.


Can you share the maintenance aspect? Me, I doubt we'll ever get above a couple hundred, if that. I'm not planning on handing out to end users, or even auto-enroll.

Thanks so much!

Philip Elder

unread,
Jun 12, 2019, 3:22:41 PM6/12/19
to ntsys...@googlegroups.com

I’m late to the party and TL;DR due to being busy with fires … however, has this one been passed along?

 

# From: http://binarynature.blogspot.com/2015/03/pki-active-directory-certificate-services-two-tier-ca-server-core-for-windows-2012-r2.html

 

It’s a bit dated but would be one option to keep things buttoned up nice and tight.

 

Philip Elder MCTS

Microsoft High Availability MVP

E-mail: Phili...@mpecsinc.ca

Phone: (780) 458-2028

www.CommodityClusters.Com

Blog Site

Twitter: MPECSInc

Skype: MPECS Inc.

Cloud: Canadian Cloud Worx

 

 

Please note: Although we may sometimes respond to email, text and phone calls instantly at all hours of the day, our regular business hours are 8:00 AM - 5:00 PM, Monday thru Friday.

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Michael Leone
Sent: Wednesday, June 12, 2019 13:20
To: NTSysAdmin <ntsys...@googlegroups.com>
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

On Wed, Jun 12, 2019 at 3:08 PM Dennis Pinckard <ntsys...@doomsdaypig.com> wrote:

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.


For more options, visit https://groups.google.com/d/optout.


ExchangeDefender Message Security: Check Authenticity

Robert ECEO Townley

unread,
Jun 12, 2019, 3:40:07 PM6/12/19
to ntsys...@googlegroups.com
I suppose true servercore would use less harddrive space.  But how do 
we forget about winsxs and the countless hours freeing up space on 60GB Windows Server drive without desktop experience.  Our CentOS root CA  uses a max of 3GB drive space even with all updates.   If it ever did fill up, i can easily free up space with builtin tools.   Less time spent and more SAN space freed up with Linux as the root.  Like Dennis Pinckard said, you can still use Windows for the intermediate issuing CA.  

Dennis Pinckard

unread,
Jun 12, 2019, 4:06:49 PM6/12/19
to ntsys...@googlegroups.com

I've attached a "scrubbed" version of my maintenance script.  Usual warnings apply. 

The actions of the script include:
 * Full Backup the CA Database to D:\Backup\<date>
 * Password protected backup of CA private key to D:\Backup\<date>
 * Export of CA registry keys  to D:\Backup\<date>
 * Compress and Archive backup directory
 * Delete backup archives older than 90 days
 * Deletion of failed certificate request records older than 14 days
 * Deletion of expired certificate records (that do not require key archival) older than 90 days
 * Compress IIS logs older than 14 days
 * Delete IIS logs older than 90 days
 * Email report detailing above actions
 * Email report summarizing CA activity for previous week (Not yet implemented)


Places to edit include:

    Line 82: [String[]]$EmailRecipient = ("us...@example.com")    # default to account running the script.

    Line 257: $MailSMTPServer = "smtpserver.example.com"

    Line 258: $EmailSender = (get-content env:computername) + "@example.com"

    Line 292: $backupBaseDir = "D:\Backups\"

The script has two main dependencies: 7-Zip and the Powershell Credential Manager module (https://www.powershellgallery.com/packages/CredentialManager/2.0)

I wanted to keep the password used for backing up the CA out of plain text, so I use a dedicated service account on the CA server and store the password in Windows Credential Manager as "CAPassword".  That information is encrypted against that user account.  The module allows the script, running under the same service account to access that password.  Alternatively, a password can be provided as a parameter.

It is not as fully commented as I would like, but I think it's adequate to describe what's happening.


To create the script, I used information from these and other sites:

https://blogs.technet.microsoft.com/askds/2010/08/31/the-case-of-the-enormous-ca-database/

https://blog.ahasayen.com/microsoft-ca-database-cleanup/


Start-CAMaintenance.ps1.txt

Melvin Backus

unread,
Jun 13, 2019, 6:49:56 AM6/13/19
to ntsys...@googlegroups.com

T H A N K Y O U !!

 

Way more than I was anticipating.  This group never fails to amaze me.

 

--
There are 10 kinds of people in the world...
         those who understand binary and those who don't.

 

¯\_()_/¯

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Dennis Pinckard
Sent: Wednesday, June 12, 2019 4:07 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating an old non-MS Cert Authority to a new CA in AD

 

I've attached a "scrubbed" version of my maintenance script.  Usual warnings apply. 

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To post to this group, send email to ntsys...@googlegroups.com.
Visit this group at https://groups.google.com/group/ntsysadmin.

Reply all
Reply to author
Forward
0 new messages