Wait for challenge to be written to disk before continuing

This also makes exceptions visible now. This commit resolves #37.
This commit is contained in:
Niklas Keller
2016-10-22 11:08:29 +02:00
parent 349a12aae6
commit 0d61689da1

View File

@@ -153,7 +153,7 @@ class Issue implements Command {
$challengeStore = new ChallengeStore($path);
try {
$challengeStore->put($token, $payload, isset($user) ? $user : null);
yield $challengeStore->put($token, $payload, isset($user) ? $user : null);
yield $acme->verifyHttp01Challenge($domain, $token, $payload);
yield $acme->answerChallenge($challenge->uri, $payload);