README.md in acme-client-2.0.3 vs README.md in acme-client-2.0.4
- old
+ new
@@ -180,10 +180,13 @@
Certificate generation happens asynchronously. You may need to poll.
```ruby
csr = Acme::Client::CertificateRequest.new(private_key: a_different_private_key, subject: { common_name: 'example.com' })
order.finalize(csr: csr)
-sleep(1) while order.status == 'processing'
+while order.status == 'processing'
+ sleep(1)
+ challenge.reload
+end
order.certificate # => PEM-formatted certificate
```
## Extra