Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want one call to finish before I call the other. #69

Open
huabanlu opened this issue Nov 12, 2022 · 2 comments
Open

I want one call to finish before I call the other. #69

huabanlu opened this issue Nov 12, 2022 · 2 comments

Comments

@huabanlu
Copy link

huabanlu commented Nov 12, 2022

const [certificateKey, certificateCsr] = await acme.crypto.createCsr({ commonName: '*.test.com', altNames: ['test.com'] });

If I do this, I call the challengeCreateFn method at the same time.
I want one call to finish before I call the other.

This is the log:
2022-11-11 01:25:03 Triggered challengeCreateFn() dns-01
2022-11-11 01:25:03 Triggered challengeCreateFn() dns-01
2022-11-11 01:25:03 Triggered challengeRemoveFn() dns-01

and the version:
"acme-client": "^5.0.0"

@huabanlu
Copy link
Author

Because setDns() methods can't run at the same time.

@huabanlu
Copy link
Author

In your code...(auto.js line 87)
const challengePromises = authorizations.map(async (authz) => {
Why do you use "array.map"?
"for(let item of array)" make "await" useful...
Please modify it accordingly, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant