Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

valid is not acceptable for finalization #5

Closed
christophedemey opened this issue Jan 21, 2020 · 4 comments
Closed

valid is not acceptable for finalization #5

christophedemey opened this issue Jan 21, 2020 · 4 comments

Comments

@christophedemey
Copy link

Hi

I get an error :

fail: LetsEncrypt.CertificateBuilderService[0]
      Certes.AcmeRequestException: Fail to load resource from 'https://acme-v02.                                                                                  api.letsencrypt.org/acme/finalize/76335103/2097088055'.
      urn:ietf:params:acme:error:orderNotReady: Order's status ("valid") is not                                                                                   acceptable for finalization
         at Certes.Acme.IAcmeHttpClientExtensions.Post[T](IAcmeHttpClient client                                                                                  , Uri uri, Object payload, Boolean ensureSuccessStatusCode)
         at Certes.Acme.OrderContext.Finalize(Byte[] csr)
         at Certes.IOrderContextExtensions.Finalize(IOrderContext context, CsrIn                                                                                  fo csr, IKey key)
         at Certes.IOrderContextExtensions.Generate(IOrderContext context, CsrIn                                                                                  fo csr, IKey key)
         at LetsEncrypt.CertificateBuilderService.BuildCertificate(IOrderContext                                                                                   order, String hostName)
fail: LetsEncrypt.CertificateBuilderService[0]
      Certes.AcmeRequestException: Fail to load resource from 'https://acme-v02.                                                                                  api.letsencrypt.org/acme/finalize/76335103/2097088055'.
      urn:ietf:params:acme:error:orderNotReady: Order's status ("valid") is not                                                                                   acceptable for finalization
         at Certes.Acme.IAcmeHttpClientExtensions.Post[T](IAcmeHttpClient client                                                                                  , Uri uri, Object payload, Boolean ensureSuccessStatusCode)
         at Certes.Acme.OrderContext.Finalize(Byte[] csr)
         at Certes.IOrderContextExtensions.Finalize(IOrderContext context, CsrIn                                                                                  fo csr, IKey key)
         at Certes.IOrderContextExtensions.Generate(IOrderContext context, CsrIn                                                                                  fo csr, IKey key)
         at LetsEncrypt.CertificateBuilderService.BuildCertificate(IOrderContext                                                                                   order, String hostName)
fail: LetsEncrypt.CertificateBuilderService[0]
      Certes.AcmeRequestException: Fail to load resource from 'https://acme-v02.                                                                                  api.letsencrypt.org/acme/finalize/76335103/2097088055'.
      urn:ietf:params:acme:error:orderNotReady: Order's status ("valid") is not                                                                                   acceptable for finalization
         at Certes.Acme.IAcmeHttpClientExtensions.Post[T](IAcmeHttpClient client                                                                                  , Uri uri, Object payload, Boolean ensureSuccessStatusCode)
         at Certes.Acme.OrderContext.Finalize(Byte[] csr)
         at Certes.IOrderContextExtensions.Finalize(IOrderContext context, CsrIn                                                                                  fo csr, IKey key)
         at Certes.IOrderContextExtensions.Generate(IOrderContext context, CsrIn                                                                                  fo csr, IKey key)
         at LetsEncrypt.CertificateBuilderService.BuildCertificate(IOrderContext                                                                                   order, String hostName)
@christophedemey
Copy link
Author

Any idea's ? I was using another middleware before this.

@pablopioli
Copy link
Owner

There is a delay between and order is created and it is processed by LetsEncrypt. In this point the certificate order is in the Valid state, then it transitions to the Finished state

Meanwhile Certes throws an error, so the library tooks 30 seconds before reading the response. Clearly is is not enough.

@pablopioli
Copy link
Owner

There is an ongoing discussion about the different LetsEncrypt libraries
natemcmaster/LettuceEncrypt#29

Seeing where this goes, I think is a waste of resources to maintain slightly different libraries for the same task.

@christophedemey
Copy link
Author

I switched to fluffyspoon and the problem disapeared, i guess i will be using fluffyspoon from now on.
Thanks for the info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants