Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple certificates with the same name #121

Closed
Resident-Alien opened this issue Feb 20, 2018 · 2 comments · Fixed by #271
Closed

Multiple certificates with the same name #121

Resident-Alien opened this issue Feb 20, 2018 · 2 comments · Fixed by #271
Labels
bug The issue is a bug.

Comments

@Resident-Alien
Copy link

For DSC MOF encryption and WinRM HTTPS all of my servers end up with 2 certificates. Unfortunately the method in which get xcertreg uses to determine if the cert already exists is simply the subject name and the CA's name. So when you have two certs with the same name but each has a different ability and unique friendly name the DSC gets very confused and keeps re-issuing certs. The common issue is here:

The certificate with subject 'CN=%hostnme%' issued by '%internal CA%' with thumbprint $Thumbprint has the wrong template $templatename.

We need to add something to the check routine beyond just the subject and the CA.

@PlagueHO PlagueHO added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels May 3, 2018
@SwarfegaGit
Copy link

I have the same issue with a RDP Certificate enrolled by Group Policy. It's issued by the same CA but by a different template. If I delete the RDP Certificate it works fine up until group policy is ran again and installs another certificate.
Can we not add the ability to filter by the FriendlyName property as that can be easily made unique?

@PlagueHO
Copy link
Member

Hi @SwarfegaGit - yes we should be able to do this I think. Just need to get time to do it - unless some one gets to it first and submits a PR 😁.

SwarfegaGit pushed a commit to SwarfegaGit/CertificateDsc that referenced this issue Sep 17, 2019
@johlju johlju removed the help wanted The issue is up for grabs for anyone in the community. label Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug.
Projects
None yet
4 participants