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

Support removing clientAuth from extended key usage extension #5132

Open
mdmower opened this issue May 4, 2024 · 1 comment
Open

Support removing clientAuth from extended key usage extension #5132

mdmower opened this issue May 4, 2024 · 1 comment

Comments

@mdmower
Copy link

mdmower commented May 4, 2024

It should be possible to generate a CSR with only extendedKeyUsage=serverAuth. Currently, acme.sh hard codes extendedKeyUsage=serverAuth,clientAuth in the certificate signing request.

A use case is certificates with the CanSignHttpExchanges extension. Google does not allow clientAuth in the extended key usage field. Here's the response from https://dv-sxg.acme-v02.api.pki.goog/directory:

{
  "type":"urn:ietf:params:acme:error:badCSR",
  "detail":"SXG certificates do not support the clientAuth KeyPurposeId within the Extended Key Usage extension.",
  "requestID":"<redacted>"
}

More information:

Steps to reproduce

acme.sh --register-account -m "myemail@example.com" --server "https://dv-sxg.acme-v02.api.pki.goog/directory" --eab-kid "<google-cloud-keyId>" --eab-hmac-key "<google-cloud-b64MacKey>"
acme.sh --server "https://dv-sxg.acme-v02.api.pki.goog/directory" --issue -k ec-256 --dns dns_cf -d mysxg.example.com

Debug log

[Sat May  4 04:08:01 PM UTC 2024] Sign failed, finalize code is not 200.
[Sat May  4 04:08:01 PM UTC 2024] {"type":"urn:ietf:params:acme:error:badCSR","detail":"SXG certificates do not support the clientAuth KeyPurposeId within the Extended Key Usage extension.","requestID":"<redacted>"}
Copy link

github-actions bot commented May 4, 2024

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

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

1 participant