acme4j: Android: order is valid however certificate chain is not correctly downloaded

Hi!

My Order.status is valid and the resulting Certificate returns the correct URI from getLocation(), when I paste the URL in chrome the PEM chain is correctly dowloaded.

However in my code certificate.getCertificate() is supposed to load the x.509 certificate but doesn’t. It attempts to download the chain via lazyDownload() no errors are thrown whilst downloading but the resulting certChain stays empty so certChain.get(0) crashes. Any idea’s? Might have something to do with TrimmingInputStream since read() is never called after CertificateFactory.generateCertificates(in).

Regards

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

Thank you for reporting back! I have just published the fix in acme4j v2.13. It’s available in the release section, and should be available on Maven Central in the next couple of hours.

@shred I can confirm the problem is solved on my end! ACME4J is functional on Android.