Coder Social home page Coder Social logo

Comments (19)

glatzert avatar glatzert commented on September 27, 2024 1

Exactly - the AppPoolIdentity is used for all requests to the ADCS and thus need proper permissions.

from acme-server-adcs.

glatzert avatar glatzert commented on September 27, 2024

First you can take a look into the Event log of the web server - it might contain further information.
Second you should take a look into the adcs server event and security logs - it'll tell you why it won't issue certificates.

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

Thanks for your reply bu I have nothing in my Webserver log and I'm gonna take a look in the ADCS logs.

I come back to you when I have more informations :)

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

I have my response, it's the user that can't create the certificate. To change the user that make the request I need to modify the user in the IIS-APP Pool ?

Thanks.

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

Hello,
I have changed the account in the App-Pool configuration but now i've the same error but now I don't have any ADCS logs anymore.

Is this normal ?

from acme-server-adcs.

glatzert avatar glatzert commented on September 27, 2024

Does ACME-ADCS still run with the new Identity?
You should be able to request the path '/' for the service description.
Also I, ACME-ADCS will log rather extensively, if you enable debug logging - but the account needs proper write permissions for your logging target.
If nothing helps, Asp.net core will (most times) log into the event log.
If that also does not help, you can redirect the stdout of aspnet core via web.config.

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

When I call "/"I get this {"newNonce":"http://svname/new-nonce","newAccount":"http://svname/new-account","newOrder":"http://svname/new-order","meta":{"externalAccountRequired":false}}

Can I ask you what "externalAccountRequired" mean ?

I think it might be the problem ?

And yes my app still run with my account (for the moment) that have right to write in the template that I give him.

In the APP log I got that
{"@t":"2023-10-19T07:02:59.1274635Z","@m":"Try to issue certificate for CSR: CSR HERE","@i":"317fe2e9","@l":"Debug","SourceContext":"TGIT.ACME.Protocol.IssuanceServices.ADCS.CertificateIssuer"}
{"@t":"2023-10-19T07:02:59.2202465Z","@m":"Exception has been raised during certificate issuance.","@i":"34777d5d","@l":"Error","@x":"System.ArgumentException: CCertRequest::Submit: Paramètre incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)\r\n at CERTCLILib.CCertRequestClass.Submit(Int32 Flags, String strRequest, String strAttributes, String strConfig)\r\n at TGIT.ACME.Protocol.IssuanceServices.ADCS.CertificateIssuer.IssueCertificate(String csr, CancellationToken cancellationToken)

from acme-server-adcs.

glatzert avatar glatzert commented on September 27, 2024

Hm - the message is very broad.
Nevertheless I would assume that to be showing up at the ADCS (at least in Debug logs?)
Only thing I found with my GoogleFu was a hint that the template might not be correct.

Perhaps you can logon as that user and check, if you would be able to get that certificate via mmc (to make sure the user / certificate are a valid combination)?

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

I try that and I come back to you.

Thanks for the help !

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

Hello,

After trying with an account that have all privileges I can't issue the cert with ACME. I think it comes beacause of the CSR, or fields that are not completed in the ADCS. Because I have the same error.

Did you know how I should configure this template ?

from acme-server-adcs.

glatzert avatar glatzert commented on September 27, 2024

I've always been using a copy of the Web Server Template and that worked fine, IIRC (I used ACME-PS for general testing, but also made sure it works with certbot here).
It might be possible, that you need a CN, which is not necessarily set by e.g. certbot (or a template that does not require a CN to be present)

from acme-server-adcs.

siegy22 avatar siegy22 commented on September 27, 2024

Running into the same issue.
Windows Server 2022, ACME-ADCS 1.0.3-beta, Dotnet 6 LTS.

System.ArgumentException: CCertRequest::Submit: The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)\r\n   at CERTCLILib.CCertRequestClass.Submit(Int32 Flags, String strRequest, String strAttributes, String strConfig)\r\n   at TGIT.ACME.Protocol.IssuanceServices.ADCS.CertificateIssuer.IssueCertificate(String csr, CancellationToken cancellationToken) in E:\\Dev\\ACME-Server-ADCS\\src\\ACME.CertProvider.ADCS\\CertificateIssuer.cs:line 37","SourceContext":"TGIT.ACME.Protocol.IssuanceServices.ADCS.CertificateIssuer"}

Tried it with cert-manager and acme.sh

When setting up I assume I'm doing the right thing by setting the user in the pool's identity option, right?

image

I tried manually signing the CSR using certreq -submit -attrib CertificateTemplate:Webserver as same user that was set in the IIS identity field. That worked for me. πŸ€”

from acme-server-adcs.

glatzert avatar glatzert commented on September 27, 2024

That seems fine - I add a line of logging to be sure, the attributes for the request are properly set (V1.0.4)

from acme-server-adcs.

siegy22 avatar siegy22 commented on September 27, 2024

After updating to 1.0.4 I now have the same behavior as described in: #14

(Also: yes also using acme.sh for testing purposes)

from acme-server-adcs.

glatzert avatar glatzert commented on September 27, 2024

from acme-server-adcs.

siegy22 avatar siegy22 commented on September 27, 2024

I don't get it, why would that be needed? acme.sh is setting the cname in the CSR.
And also, it doesn't fix anything setting "AllowEmptyCN": to true/false.

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

Hello after updating to 1.0.4, I get this error : "Detected TGIT.ACME.Protocol.Model.Exceptions.MalformedRequestException. Converting to BadRequest.". It happend when requesting the "/new-order" path. Did this have a link with the current issue ?

from acme-server-adcs.

Seyfle avatar Seyfle commented on September 27, 2024

Nevermind, it was a dumb configuration error.....
The model name was invalid

Thanks for the help anyways.
Have a good day !

from acme-server-adcs.

glatzert avatar glatzert commented on September 27, 2024

Hi there, I'm happy I could help by doing nothing πŸ˜„
But very good, it's working for you again.

from acme-server-adcs.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.