-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Let's Encrypt returns duplicate order from New-PAOrder when details match an existing pending/ready order #401
Comments
Hey, @thomasgusset. I don't think the problem is that You can check if the orders are a duplicate by comparing the Get-PAOrder -List | Select-Object Name,location I'm guessing Boulder (LE's ACME server implementation) is trying to conserve resources by returning the first order's object during the second order's request since it hasn't been finalized yet and from the Boulder's perspective, the order details are identical. I'm going to ask about this in the community forums to verify what's going on. But my local testing makes it look like you can work around the issue by finalizing the first order before creating the second order. In that case, I'm guessing the second order is seen by Boulder as a renewal (albeit very early) and a new order object is created for it. |
Found official confirmation about the Boulder behavior in their ACME implementation details doc: https://github.com/letsencrypt/boulder/blob/main/docs/acme-implementation_details.md#order
So the workaround I described where you fully process one order before starting the next order seems to be a requirement in this case. |
Hi @rmbolger |
Yes, totally supported from a Posh-ACME perspective to have two different orders for the same set of identifiers as long as they have different The only issue in this case was that due to the way LE re-uses order objects, the two orders in Posh-ACME were actually the same order. To prevent that, you have to finalize/complete the first order before creating the second order. P.S. Knowing this is now a potential issue, I'm probably going to try and add some code to have |
…er object that matches an existing order with a different name. (#401)
The change that throws an error on a duplicate order is now live in 4.11.0 |
If you create two orders for the same MainDomain with different names, Submit-OrderFinalize doesn't use the submitted order.
create two orders:
List the orders
Finalize first order
Get-PAOrder -Name Server1 | Submit-OrderFinalize
List the orders again -> order for Server2 has been finalized
try to finalize second order
try again with Server1
The text was updated successfully, but these errors were encountered: