使用ACME.SH通過西部數碼DNS申請證書

發佈時間:2025-08-20

通過acme.sh客戶端工具自動頒發證書:

中文:

確保您下載的官方acme.sh 並更新到了最新 (相關鏈接)

md5加密後的API密鑰獲取:
請從 管理中心-API接口設置頁面 https://www.west.cn/manager/API/APIconfig.asp 獲取API的明文密鑰,然後您還需要經過一層MD5加密得到加密密鑰
md5在線加密工具:  
https://www.md5hashgenerator.com/
https://www.jyshare.com/front-end/703/

1、引入認證信息

export WEST_Username="您在west.cn的會員用戶名"
export WEST_Key="<md5加密後的API密鑰>"

2、執行證書申請

./acme.sh --issue --dns dns_west_cn -d example.com -d *.example.com

認證信息將會保存在 ~/.acme.sh/account.conf 以供您後期使用



English:

Please visit  https://www.west.cn/manager/API/APIconfig.asp to obtain the Plaint API key.

<Your Encryption APIKey> = md5(<Your Plaint APIKey>)

md5 tools:  

https://www.md5hashgenerator.com/

https://www.jyshare.com/front-end/703/

export WEST_Username="<Your Username>"
export WEST_Key="<Your Encryption APIKey>"

To issue a cert, run the following:

./acme.sh --issue --dns dns_west_cn -d example.com -d *.example.com

The login variables will be saved in ~/.acme.sh/account.conf and will be reused when needed.