GithubHelp home page GithubHelp logo

Comments (8)

hslatman avatar hslatman commented on May 28, 2024 1

@mholt I think your original PR in CertMagic does in fact what @arontsang is looking for, namely to send cookies (if received from the ELB) in follow up requests to the ACME server.

The HTTP client you're referring to is the one that's used to validate an HTTP challenge (actually, it's a wrapper for HTTP, DNS and TLS-ALPN challenge solving). That client does not operate on nonces, and should generally only fire a single request from behind the load balancer.

from caddy.

arontsang avatar arontsang commented on May 28, 2024 1

@arontsang Would you please try the cookies branch of CertMagic? See if that helps you out. caddyserver/certmagic#288

@mholt

I'm going to try compile and run this in my corporate environment and see if it fixes the issue.

I'm not a golang dev, so I'm not sure how well it's going to go.😜

from caddy.

mholt avatar mholt commented on May 28, 2024

@arontsang Would you please try the cookies branch of CertMagic? See if that helps you out. caddyserver/certmagic#288

from caddy.

mholt avatar mholt commented on May 28, 2024

Oh, you said you have an ACME server. Nevermind. One minute.

from caddy.

mholt avatar mholt commented on May 28, 2024

Ok, so that HTTP client actually comes from smallstep/certificates:

https://github.com/smallstep/certificates/blob/e3ba70281138416c89d4314a700d1c6127fd47de/acme/client.go#L53-L69

If there is a way to pass a custom HTTP client in (through context?) I haven't figured that out.

Sorry to redirect you again, but could you open an issue at the Smallstep repo? They will be able to better address this.

(Closing, but feel free to continue discussion if needed!)

from caddy.

mholt avatar mholt commented on May 28, 2024

Let me know; if that PR does do what you need then I'll recreate it and merge it.

from caddy.

arontsang avatar arontsang commented on May 28, 2024

@mholt

Still getting this issue:


2024/05/23 05:32:13.426 �[34mINFO�[0m   tls.obtain      obtaining certificate   {"identifier": "serverName.redacted.company.com"}
2024/05/23 05:32:15.488 �[31mERROR�[0m  tls.obtain      could not get certificate from issuer   {"identifier": "serverName.redacted.company.com", "issuer": "venafi.foobar-vacme-v2-acme-directory", "error": "[serverName.redacted.company.com] creating new order: attempt 1: https://venafi.foobar/vacme/v2/new-order: HTTP 400: {\"type\":\"urn:ietf:params:acme:error:badNonce\",\"detail\":\"Bad Nonce\",\"status\":400} (ca=https://venafi.foobar/vacme/v2/acme/directory)"}
2024/05/23 05:32:15.488 �[31mERROR�[0m  tls.obtain      will retry      {"error": "[serverName.redacted.company.com] Obtain: [serverName.redacted.company.com] creating new order: attempt 1: https://venafi.foobar/vacme/v2/new-order: HTTP 400: {\"type\":\"urn:ietf:params:acme:error:badNonce\",\"detail\":\"Bad Nonce\",\"status\":400} (ca=https://venafi.foobar/vacme/v2/acme/directory)", "attempt": 2, "retrying_in": 120, "elapsed": 74.1983161, "max_duration": 2592000}

from caddy.

mholt avatar mholt commented on May 28, 2024

@arontsang So it sounds like a Cookie Jar in the ACME client is not what is needed for your use case.

from caddy.

Related Issues (20)

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.