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

Error issuing certificate after creation #13

Open
heinejeppesen opened this issue Dec 23, 2022 · 6 comments
Open

Error issuing certificate after creation #13

heinejeppesen opened this issue Dec 23, 2022 · 6 comments

Comments

@heinejeppesen
Copy link

Hi,

I'm trying to automate building dev/test environments and we need a PKI solution.
We are using Server 2022.

I can successfully export and create using the JSON files, but when I try to use the certificate, I get the error in the image.
"The request was for a certificate template that is not supported by the Active Directory Services policy"
"The requested certificate template is not supported by this CA 0x80094800 (-2146875392 CERTSRV_E_UNSUPPORTED_CERT_TYPE)

Looking at the template in AD with ADSIEdit, I noticed the property "msPKI-RA-Application-Policies" isn't populated on the imported template. The expected value is in the JSON.

If I copy the value from the template I exported from, into the new template missing the values, the new template works.

image

@heinejeppesen
Copy link
Author

So it seems this issue is fixed here on Github two years ago, but the module on PSGallery hasn't been updated with the fix.
Unfortunately this make is rather difficult to use in automated ways. :-(

We build our environments using Bicep pipeline and Azure Automation DSC, where modules are imported automatically from PSGallery.

Would be really nice if the updated code was pushed to PSGallery ;-)

@msilveirabr
Copy link

@heinejeppesen There's been minor updates indeed.
@GoateePFE Would you kindly get PSGallery ADCSTemplate version updated to the github one? I guess this will require a 1.0.1.1 version bump ;)

@Geo-Ron
Copy link
Contributor

Geo-Ron commented Feb 14, 2024

The issue has been fixed in commit aa7ce02

@GoateePFE would you please update the PSGallery edition?

@msilveirabr
Copy link

@GoateePFE We beg you to update the PSGallery with the latest update, pleeeeease 🙏🏼 😇

@GoateePFE
Copy link
Owner

Hello everyone. It's been years since I looked at this. I took several hours today to get my head kinda back in the game enough to commit your pull requests and publish the changes to the PowerShell Gallery under version 1.0.1.1. Please update the module and test to see if it works as needed now.
Also, I would love to hand this project off to someone else to own, maintain, and update the gallery. If anyone is interested, I would be happy to make you the owner in the gallery.
Thanks.

@GoateePFE
Copy link
Owner

@msilveirabr @Geo-Ron @heinejeppesen Please see above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants