challengePath => challenge.token
This commit is contained in:
parent
0775bf9000
commit
c129167b35
|
@ -102,11 +102,9 @@ function getCert(options, cb) {
|
|||
|
||||
thumbprint=cryptoUtil.thumbprint(state.accountKeyPair.publicKey);
|
||||
keyAuthorization=challenge.token+'.'+thumbprint;
|
||||
challengePath='.well-known/acme-challenge/'+challenge.token;
|
||||
state.responseUrl=challenge.uri;
|
||||
state.path=challengePath;
|
||||
|
||||
options.setChallenge(state.domain, '/'+challengePath, keyAuthorization, challengeDone);
|
||||
options.setChallenge(state.domain, challenge.token, keyAuthorization, challengeDone);
|
||||
|
||||
function challengeDone() {
|
||||
state.acme.post(state.responseUrl, {
|
||||
|
@ -114,7 +112,7 @@ function getCert(options, cb) {
|
|||
keyAuthorization:keyAuthorization
|
||||
}, function(err, res, body) {
|
||||
ensureValidation(err, res, body, function unlink() {
|
||||
options.removeChallenge(state.domain, '/'+challengePath, function () {
|
||||
options.removeChallenge(state.domain, challenge.token, function () {
|
||||
// ignore
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue