diff --git a/app.js b/app.js index 43eb90c..28c9e63 100644 --- a/app.js +++ b/app.js @@ -141,8 +141,9 @@ , challenges: { 'dns-01': { set: function (opts) { - console.log('dns-01 set challenge:'); - console.log(JSON.stringify(opts, null, 2)); + console.info('dns-01 set challenge:'); + console.info('TXT', opts.dnsHost); + console.info(opts.dnsAuthorization); return new Promise(function (resolve) { while (!window.confirm("Did you set the challenge?")) {} resolve(); @@ -150,7 +151,28 @@ } , remove: function (opts) { console.log('dns-01 remove challenge:'); - console.log(JSON.stringify(opts, null, 2)); + console.info('TXT', opts.dnsHost); + console.info(opts.dnsAuthorization); + return new Promise(function (resolve) { + while (!window.confirm("Did you delete the challenge?")) {} + resolve(); + }); + } + } + , 'http-01': { + set: function (opts) { + console.info('http-01 set challenge:'); + console.info(opts.challengeUrl); + console.info(opts.keyAuthorization); + return new Promise(function (resolve) { + while (!window.confirm("Did you set the challenge?")) {} + resolve(); + }); + } + , remove: function (opts) { + console.log('http-01 remove challenge:'); + console.info(opts.challengeUrl); + console.info(opts.keyAuthorization); return new Promise(function (resolve) { while (!window.confirm("Did you delete the challenge?")) {} resolve(); @@ -158,6 +180,7 @@ } } } + , challengeTypes: [$('input[name="acme-challenge-type"]:checked').value] }); }); }).catch(function (err) { diff --git a/index.html b/index.html index b4d91c8..f984d04 100644 --- a/index.html +++ b/index.html @@ -34,27 +34,21 @@
EC Options:
- - - - - + + +RSA Options:
- - - - - - + + +