From 0f44b6fc0f2ef683d7a7022e3c30fe690fcf4ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Mon, 21 Nov 2016 01:24:43 +0100 Subject: [PATCH] Change oob-01 parameter as defined in draft-04 --- .../org/shredzone/acme4j/challenge/OutOfBand01Challenge.java | 2 +- acme4j-client/src/test/resources/json.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/challenge/OutOfBand01Challenge.java b/acme4j-client/src/main/java/org/shredzone/acme4j/challenge/OutOfBand01Challenge.java index 55dcbeac..6a033852 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/challenge/OutOfBand01Challenge.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/challenge/OutOfBand01Challenge.java @@ -46,7 +46,7 @@ public class OutOfBand01Challenge extends Challenge { */ public URL getValidationUrl() { try { - return new URL((String) get("url")); + return new URL((String) get("href")); } catch (MalformedURLException ex) { throw new AcmeProtocolException("Invalid validation URL", ex); } diff --git a/acme4j-client/src/test/resources/json.properties b/acme4j-client/src/test/resources/json.properties index 908e1445..d9aae368 100644 --- a/acme4j-client/src/test/resources/json.properties +++ b/acme4j-client/src/test/resources/json.properties @@ -235,7 +235,7 @@ tlsSni02Challenge = \ oobChallenge = \ { \ "type": "oob-01", \ - "url": "https://example.com/validate/evaGxfADs6pSRb2LAv9IZ" \ + "href": "https://example.com/validate/evaGxfADs6pSRb2LAv9IZ" \ } # \ No newline at end of file