-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Utilize multiple DNS API keys
neil edited this page Mar 20, 2022
·
3 revisions
As for now, the dns api key/secret is saved in the global account.conf
file, so that it can be reused for any of the domains in your account.
So, what if you have multiple dns api keys. The key point is to use multiple account.conf
file.
You can use either of the following ways:
It's the easiest way to use. You can just create multiple Linux users, and install and use acme.sh for each users:
su acmeuser1
curl https://get.acme.sh | sh -s [email protected]
source ~/.acme.sh/acme.sh.env
export MYDNS_APIKey1=xxxxxxx
acme.sh --issue -d domain1.com --dns ........
And then switch to another user:
su acmeuser2
curl https://get.acme.sh | sh -s [email protected]
source ~/.acme.sh/acme.sh.env
export MYDNS_APIKey2=xxxxxxx
acme.sh --issue -d domain1.com --dns ........
Buy me a beer, Donate to acme.sh if it saves your time. Your donation makes acme.sh better: https://donate.acme.sh/
如果 acme.sh 帮你节省了时间,请考虑赏我一杯啤酒🍺, 捐助: https://donate.acme.sh/ 你的支持将会使得 acme.sh 越来越好. 感谢