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

Getting template from client #185

Open
idan100 opened this issue Oct 21, 2024 · 1 comment
Open

Getting template from client #185

idan100 opened this issue Oct 21, 2024 · 1 comment

Comments

@idan100
Copy link

idan100 commented Oct 21, 2024

Hi grindsa
I would like my clients (acmesh,winacme and cert manager) to transfer the template they want in their request to my acme2certifier pod.
I am using the mswcce ca handler, and I saw you can transfer the desired template by the useragent field.
Sadly I cannot use this field in order to transfer the template - since I am using it to collect metrics for it's original purpose, the user agent sending the request.
I saw in acme.sh that there is the field: "extended-key-usage", which is also getting a string and is more appropriate for passing the template.
I was wondering if you could parse this field in order to extract the template name from it and passing it on to Microsoft ADCS.
Thanks in advanced!
image

@grindsa
Copy link
Owner

grindsa commented Oct 22, 2024

Hi,

I had a quick look; I am not sure if --extended-key-usage fits the purpose as:

The handler could be modified to extract the attributes from the CSR and send the first one as template-name to the CA but as i said; given the above limitation i am not sure if this is enough for your needs.

/G.

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

2 participants