You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

795 lines
22 KiB

9 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
  1. # How to use DNS API
  2. ## 1. Use CloudFlare domain API to automatically issue cert
  3. First you need to login to your CloudFlare account to get your API key.
  4. ```
  5. export CF_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
  6. export CF_Email="xxxx@sss.com"
  7. ```
  8. Ok, let's issue a cert now:
  9. ```
  10. acme.sh --issue --dns dns_cf -d example.com -d www.example.com
  11. ```
  12. The `CF_Key` and `CF_Email` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  13. ## 2. Use DNSPod.cn domain API to automatically issue cert
  14. First you need to login to your DNSPod account to get your API Key and ID.
  15. ```
  16. export DP_Id="1234"
  17. export DP_Key="sADDsdasdgdsf"
  18. ```
  19. Ok, let's issue a cert now:
  20. ```
  21. acme.sh --issue --dns dns_dp -d example.com -d www.example.com
  22. ```
  23. The `DP_Id` and `DP_Key` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  24. ## 3. Use CloudXNS.com domain API to automatically issue cert
  25. First you need to login to your CloudXNS account to get your API Key and Secret.
  26. ```
  27. export CX_Key="1234"
  28. export CX_Secret="sADDsdasdgdsf"
  29. ```
  30. Ok, let's issue a cert now:
  31. ```
  32. acme.sh --issue --dns dns_cx -d example.com -d www.example.com
  33. ```
  34. The `CX_Key` and `CX_Secret` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  35. ## 4. Use GoDaddy.com domain API to automatically issue cert
  36. First you need to login to your GoDaddy account to get your API Key and Secret.
  37. https://developer.godaddy.com/keys/
  38. Please create a Production key, instead of a Test key.
  39. ```
  40. export GD_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
  41. export GD_Secret="asdfsdafdsfdsfdsfdsfdsafd"
  42. ```
  43. Ok, let's issue a cert now:
  44. ```
  45. acme.sh --issue --dns dns_gd -d example.com -d www.example.com
  46. ```
  47. The `GD_Key` and `GD_Secret` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  48. ## 5. Use PowerDNS embedded API to automatically issue cert
  49. First you need to login to your PowerDNS account to enable the API and set your API-Token in the configuration.
  50. https://doc.powerdns.com/md/httpapi/README/
  51. ```
  52. export PDNS_Url="http://ns.example.com:8081"
  53. export PDNS_ServerId="localhost"
  54. export PDNS_Token="0123456789ABCDEF"
  55. export PDNS_Ttl=60
  56. ```
  57. Ok, let's issue a cert now:
  58. ```
  59. acme.sh --issue --dns dns_pdns -d example.com -d www.example.com
  60. ```
  61. The `PDNS_Url`, `PDNS_ServerId`, `PDNS_Token` and `PDNS_Ttl` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  62. ## 5a. Use PowerDNS mysql backend to automatically issue cert
  63. First you need to set your host:user:pass:database in the configuration.
  64. Make sure the following are in your records table:
  65. INSERT INTO `records` (`domain_id`, `name`, `type`, `content`, `ttl`, `prio`, `change_date`)
  66. VALUES ({your domain_id}, 'example.com', 'SOA', 'ns1.example.com.net admin.example.com 1 10800 3600 604800 3600', 120, NULL, 0),
  67. ({your domain_id}, '_acme-challenge.example.com', 'A', '{ipv4 address}', 60, NULL, 0),
  68. ({your domain_id}, '_acme-challenge.example.com', 'AAAA', '{ipv6 address}', 60, NULL, NULL, 'N', 0, NULL, 0),
  69. ({your domain_id}, 'example.com', 'CAA', '0 issue "letsencrypt.org"', 60, NULL, 0);
  70. Ok, let's issue a cert now:
  71. ```
  72. acme.sh --issue --dns dns_pdnsMysql -d example.com -d *.example.com
  73. ```
  74. ## 6. Use OVH/kimsufi/soyoustart/runabove API to automatically issue cert
  75. https://github.com/Neilpang/acme.sh/wiki/How-to-use-OVH-domain-api
  76. ## 7. Use nsupdate to automatically issue cert
  77. First, generate a key for updating the zone
  78. ```
  79. b=$(dnssec-keygen -a hmac-sha512 -b 512 -n USER -K /tmp foo)
  80. cat > /etc/named/keys/update.key <<EOF
  81. key "update" {
  82. algorithm hmac-sha512;
  83. secret "$(awk '/^Key/{print $2}' /tmp/$b.private)";
  84. };
  85. EOF
  86. rm -f /tmp/$b.{private,key}
  87. ```
  88. Include this key in your named configuration
  89. ```
  90. include "/etc/named/keys/update.key";
  91. ```
  92. Next, configure your zone to allow dynamic updates.
  93. Depending on your named version, use either
  94. ```
  95. zone "example.com" {
  96. type master;
  97. allow-update { key "update"; };
  98. };
  99. ```
  100. or
  101. ```
  102. zone "example.com" {
  103. type master;
  104. update-policy {
  105. grant update subdomain example.com.;
  106. };
  107. }
  108. ```
  109. Finally, make the DNS server and update Key available to `acme.sh`
  110. ```
  111. export NSUPDATE_SERVER="dns.example.com"
  112. export NSUPDATE_KEY="/path/to/your/nsupdate.key"
  113. ```
  114. Ok, let's issue a cert now:
  115. ```
  116. acme.sh --issue --dns dns_nsupdate -d example.com -d www.example.com
  117. ```
  118. The `NSUPDATE_SERVER` and `NSUPDATE_KEY` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  119. ## 8. Use LuaDNS domain API
  120. Get your API token at https://api.luadns.com/settings
  121. ```
  122. export LUA_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
  123. export LUA_Email="xxxx@sss.com"
  124. ```
  125. To issue a cert:
  126. ```
  127. acme.sh --issue --dns dns_lua -d example.com -d www.example.com
  128. ```
  129. The `LUA_Key` and `LUA_Email` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  130. ## 9. Use DNSMadeEasy domain API
  131. Get your API credentials at https://cp.dnsmadeeasy.com/account/info
  132. ```
  133. export ME_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
  134. export ME_Secret="qdfqsdfkjdskfj"
  135. ```
  136. To issue a cert:
  137. ```
  138. acme.sh --issue --dns dns_me -d example.com -d www.example.com
  139. ```
  140. The `ME_Key` and `ME_Secret` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  141. ## 10. Use Amazon Route53 domain API
  142. https://github.com/Neilpang/acme.sh/wiki/How-to-use-Amazon-Route53-API
  143. ```
  144. export AWS_ACCESS_KEY_ID=XXXXXXXXXX
  145. export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXX
  146. ```
  147. To issue a cert:
  148. ```
  149. acme.sh --issue --dns dns_aws -d example.com -d www.example.com
  150. ```
  151. The `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  152. ## 11. Use Aliyun domain API to automatically issue cert
  153. First you need to login to your Aliyun account to get your API key.
  154. [https://ak-console.aliyun.com/#/accesskey](https://ak-console.aliyun.com/#/accesskey)
  155. ```
  156. export Ali_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
  157. export Ali_Secret="jlsdflanljkljlfdsaklkjflsa"
  158. ```
  159. Ok, let's issue a cert now:
  160. ```
  161. acme.sh --issue --dns dns_ali -d example.com -d www.example.com
  162. ```
  163. The `Ali_Key` and `Ali_Secret` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  164. ## 12. Use ISPConfig 3.1 API
  165. This only works for ISPConfig 3.1 (and newer).
  166. Create a Remote User in the ISPConfig Control Panel. The Remote User must have access to at least `DNS zone functions` and `DNS txt functions`.
  167. ```
  168. export ISPC_User="xxx"
  169. export ISPC_Password="xxx"
  170. export ISPC_Api="https://ispc.domain.tld:8080/remote/json.php"
  171. export ISPC_Api_Insecure=1
  172. ```
  173. If you have installed ISPConfig on a different port, then alter the 8080 accordingly.
  174. Leaver ISPC_Api_Insecure set to 1 if you have not a valid ssl cert for your installation. Change it to 0 if you have a valid ssl cert.
  175. To issue a cert:
  176. ```
  177. acme.sh --issue --dns dns_ispconfig -d example.com -d www.example.com
  178. ```
  179. The `ISPC_User`, `ISPC_Password`, `ISPC_Api`and `ISPC_Api_Insecure` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  180. ## 13. Use Alwaysdata domain API
  181. First you need to login to your Alwaysdata account to get your API Key.
  182. ```sh
  183. export AD_API_KEY="myalwaysdataapikey"
  184. ```
  185. Ok, let's issue a cert now:
  186. ```sh
  187. acme.sh --issue --dns dns_ad -d example.com -d www.example.com
  188. ```
  189. The `AD_API_KEY` will be saved in `~/.acme.sh/account.conf` and will be reused
  190. when needed.
  191. ## 14. Use Linode domain API
  192. First you need to login to your Linode account to get your API Key.
  193. [https://manager.linode.com/profile/api](https://manager.linode.com/profile/api)
  194. Then add an API key with label *ACME* and copy the new key.
  195. ```sh
  196. export LINODE_API_KEY="..."
  197. ```
  198. Due to the reload time of any changes in the DNS records, we have to use the `dnssleep` option to wait at least 15 minutes for the changes to take effect.
  199. Ok, let's issue a cert now:
  200. ```sh
  201. acme.sh --issue --dns dns_linode --dnssleep 900 -d example.com -d www.example.com
  202. ```
  203. The `LINODE_API_KEY` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  204. ## 15. Use FreeDNS
  205. FreeDNS (https://freedns.afraid.org/) does not provide an API to update DNS records (other than IPv4 and IPv6
  206. dynamic DNS addresses). The acme.sh plugin therefore retrieves and updates domain TXT records by logging
  207. into the FreeDNS website to read the HTML and posting updates as HTTP. The plugin needs to know your
  208. userid and password for the FreeDNS website.
  209. ```sh
  210. export FREEDNS_User="..."
  211. export FREEDNS_Password="..."
  212. ```
  213. You need only provide this the first time you run the acme.sh client with FreeDNS validation and then again
  214. whenever you change your password at the FreeDNS site. The acme.sh FreeDNS plugin does not store your userid
  215. or password but rather saves an authentication token returned by FreeDNS in `~/.acme.sh/account.conf` and
  216. reuses that when needed.
  217. Now you can issue a certificate.
  218. ```sh
  219. acme.sh --issue --dns dns_freedns -d example.com -d www.example.com
  220. ```
  221. Note that you cannot use acme.sh automatic DNS validation for FreeDNS public domains or for a subdomain that
  222. you create under a FreeDNS public domain. You must own the top level domain in order to automatically
  223. validate with acme.sh at FreeDNS.
  224. ## 16. Use cyon.ch
  225. You only need to set your cyon.ch login credentials.
  226. If you also have 2 Factor Authentication (OTP) enabled, you need to set your secret token too and have `oathtool` installed.
  227. ```
  228. export CY_Username="your_cyon_username"
  229. export CY_Password="your_cyon_password"
  230. export CY_OTP_Secret="your_otp_secret" # Only required if using 2FA
  231. ```
  232. To issue a cert:
  233. ```
  234. acme.sh --issue --dns dns_cyon -d example.com -d www.example.com
  235. ```
  236. The `CY_Username`, `CY_Password` and `CY_OTP_Secret` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  237. ## 17. Use Domain-Offensive/Resellerinterface/Domainrobot API
  238. You will need your login credentials (Partner ID+Password) to the Resellerinterface, and export them before you run `acme.sh`:
  239. ```
  240. export DO_PID="KD-1234567"
  241. export DO_PW="cdfkjl3n2"
  242. ```
  243. Ok, let's issue a cert now:
  244. ```
  245. acme.sh --issue --dns dns_do -d example.com -d www.example.com
  246. ```
  247. ## 18. Use Gandi LiveDNS API
  248. You must enable the new Gandi LiveDNS API first and the create your api key, See: http://doc.livedns.gandi.net/
  249. ```
  250. export GANDI_LIVEDNS_KEY="fdmlfsdklmfdkmqsdfk"
  251. ```
  252. Ok, let's issue a cert now:
  253. ```
  254. acme.sh --issue --dns dns_gandi_livedns -d example.com -d www.example.com
  255. ```
  256. ## 19. Use Knot (knsupdate) DNS API to automatically issue cert
  257. First, generate a TSIG key for updating the zone.
  258. ```
  259. keymgr tsig generate acme_key algorithm hmac-sha512 > /etc/knot/acme.key
  260. ```
  261. Include this key in your knot configuration file.
  262. ```
  263. include: /etc/knot/acme.key
  264. ```
  265. Next, configure your zone to allow dynamic updates.
  266. Dynamic updates for the zone are allowed via proper ACL rule with the `update` action. For in-depth instructions, please see [Knot DNS's documentation](https://www.knot-dns.cz/documentation/).
  267. ```
  268. acl:
  269. - id: acme_acl
  270. address: 192.168.1.0/24
  271. key: acme_key
  272. action: update
  273. zone:
  274. - domain: example.com
  275. file: example.com.zone
  276. acl: acme_acl
  277. ```
  278. Finally, make the DNS server and TSIG Key available to `acme.sh`
  279. ```
  280. export KNOT_SERVER="dns.example.com"
  281. export KNOT_KEY=`grep \# /etc/knot/acme.key | cut -d' ' -f2`
  282. ```
  283. Ok, let's issue a cert now:
  284. ```
  285. acme.sh --issue --dns dns_knot -d example.com -d www.example.com
  286. ```
  287. The `KNOT_SERVER` and `KNOT_KEY` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  288. ## 20. Use DigitalOcean API (native)
  289. You need to obtain a read and write capable API key from your DigitalOcean account. See: https://www.digitalocean.com/help/api/
  290. ```
  291. export DO_API_KEY="75310dc4ca779ac39a19f6355db573b49ce92ae126553ebd61ac3a3ae34834cc"
  292. ```
  293. Ok, let's issue a cert now:
  294. ```
  295. acme.sh --issue --dns dns_dgon -d example.com -d www.example.com
  296. ```
  297. ## 21. Use ClouDNS.net API
  298. You need to set the HTTP API user ID and password credentials. See: https://www.cloudns.net/wiki/article/42/. For security reasons, it's recommended to use a sub user ID that only has access to the necessary zones, as a regular API user has access to your entire account.
  299. ```
  300. # Use this for a sub auth ID
  301. export CLOUDNS_SUB_AUTH_ID=XXXXX
  302. # Use this for a regular auth ID
  303. #export CLOUDNS_AUTH_ID=XXXXX
  304. export CLOUDNS_AUTH_PASSWORD="YYYYYYYYY"
  305. ```
  306. Ok, let's issue a cert now:
  307. ```
  308. acme.sh --issue --dns dns_cloudns -d example.com -d www.example.com
  309. ```
  310. The `CLOUDNS_AUTH_ID` and `CLOUDNS_AUTH_PASSWORD` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  311. ## 22. Use Infoblox API
  312. First you need to create/obtain API credentials on your Infoblox appliance.
  313. ```
  314. export Infoblox_Creds="username:password"
  315. export Infoblox_Server="ip or fqdn of infoblox appliance"
  316. ```
  317. Ok, let's issue a cert now:
  318. ```
  319. acme.sh --issue --dns dns_infoblox -d example.com -d www.example.com
  320. ```
  321. Note: This script will automatically create and delete the ephemeral txt record.
  322. The `Infoblox_Creds` and `Infoblox_Server` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  323. ## 23. Use VSCALE API
  324. First you need to create/obtain API tokens on your [settings panel](https://vscale.io/panel/settings/tokens/).
  325. ```
  326. VSCALE_API_KEY="sdfsdfsdfljlbjkljlkjsdfoiwje"
  327. ```
  328. Ok, let's issue a cert now:
  329. ```
  330. acme.sh --issue --dns dns_vscale -d example.com -d www.example.com
  331. ```
  332. ## 24. Use Dynu API
  333. First you need to create/obtain API credentials from your Dynu account. See: https://www.dynu.com/resources/api/documentation
  334. ```
  335. export Dynu_ClientId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  336. export Dynu_Secret="yyyyyyyyyyyyyyyyyyyyyyyyy"
  337. ```
  338. Ok, let's issue a cert now:
  339. ```
  340. acme.sh --issue --dns dns_dynu -d example.com -d www.example.com
  341. ```
  342. The `Dynu_ClientId` and `Dynu_Secret` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  343. ## 25. Use DNSimple API
  344. First you need to login to your DNSimple account and generate a new oauth token.
  345. https://dnsimple.com/a/{your account id}/account/access_tokens
  346. Note that this is an _account_ token and not a user token. The account token is
  347. needed to infer the `account_id` used in requests. A user token will not be able
  348. to determine the correct account to use.
  349. ```
  350. export DNSimple_OAUTH_TOKEN="sdfsdfsdfljlbjkljlkjsdfoiwje"
  351. ```
  352. To issue the cert just specify the `dns_dnsimple` API.
  353. ```
  354. acme.sh --issue --dns dns_dnsimple -d example.com
  355. ```
  356. The `DNSimple_OAUTH_TOKEN` will be saved in `~/.acme.sh/account.conf` and will
  357. be reused when needed.
  358. If you have any issues with this integration please report them to
  359. https://github.com/pho3nixf1re/acme.sh/issues.
  360. ## 26. Use NS1.com API
  361. ```
  362. export NS1_Key="fdmlfsdklmfdkmqsdfk"
  363. ```
  364. Ok, let's issue a cert now:
  365. ```
  366. acme.sh --issue --dns dns_nsone -d example.com -d www.example.com
  367. ```
  368. ## 27. Use DuckDNS.org API
  369. ```
  370. export DuckDNS_Token="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
  371. ```
  372. Please note that since DuckDNS uses StartSSL as their cert provider, thus
  373. --insecure may need to be used when issuing certs:
  374. ```
  375. acme.sh --insecure --issue --dns dns_duckdns -d mydomain.duckdns.org
  376. ```
  377. For issues, please report to https://github.com/raidenii/acme.sh/issues.
  378. ## 28. Use Name.com API
  379. You'll need to fill out the form at https://www.name.com/reseller/apply to apply
  380. for API username and token.
  381. ```
  382. export Namecom_Username="testuser"
  383. export Namecom_Token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  384. ```
  385. And now you can issue certs with:
  386. ```
  387. acme.sh --issue --dns dns_namecom -d example.com -d www.example.com
  388. ```
  389. For issues, please report to https://github.com/raidenii/acme.sh/issues.
  390. ## 29. Use Dyn Managed DNS API to automatically issue cert
  391. First, login to your Dyn Managed DNS account: https://portal.dynect.net/login/
  392. It is recommended to add a new user specific for API access.
  393. The minimum "Zones & Records Permissions" required are:
  394. ```
  395. RecordAdd
  396. RecordUpdate
  397. RecordDelete
  398. RecordGet
  399. ZoneGet
  400. ZoneAddNode
  401. ZoneRemoveNode
  402. ZonePublish
  403. ```
  404. Pass the API user credentials to the environment:
  405. ```
  406. export DYN_Customer="customer"
  407. export DYN_Username="apiuser"
  408. export DYN_Password="secret"
  409. ```
  410. Ok, let's issue a cert now:
  411. ```
  412. acme.sh --issue --dns dns_dyn -d example.com -d www.example.com
  413. ```
  414. The `DYN_Customer`, `DYN_Username` and `DYN_Password` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  415. ## 30. Use pdd.yandex.ru API
  416. ```
  417. export PDD_Token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  418. ```
  419. Follow these instructions to get the token for your domain https://tech.yandex.com/domain/doc/concepts/access-docpage/
  420. ```
  421. acme.sh --issue --dns dns_yandex -d mydomain.example.org
  422. ```
  423. For issues, please report to https://github.com/non7top/acme.sh/issues.
  424. ## 31. Use Hurricane Electric
  425. Hurricane Electric (https://dns.he.net/) doesn't have an API so just set your login credentials like so:
  426. ```
  427. export HE_Username="yourusername"
  428. export HE_Password="password"
  429. ```
  430. Then you can issue your certificate:
  431. ```
  432. acme.sh --issue --dns dns_he -d example.com -d www.example.com
  433. ```
  434. The `HE_Username` and `HE_Password` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  435. Please report any issues to https://github.com/angel333/acme.sh or to <me@ondrejsimek.com>.
  436. ## 32. Use UnoEuro API to automatically issue cert
  437. First you need to login to your UnoEuro account to get your API key.
  438. ```
  439. export UNO_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
  440. export UNO_User="UExxxxxx"
  441. ```
  442. Ok, let's issue a cert now:
  443. ```
  444. acme.sh --issue --dns dns_unoeuro -d example.com -d www.example.com
  445. ```
  446. The `UNO_Key` and `UNO_User` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  447. ## 33. Use INWX
  448. [INWX](https://www.inwx.de/) offers an [xmlrpc api](https://www.inwx.de/de/help/apidoc) with your standard login credentials, set them like so:
  449. ```
  450. export INWX_User="yourusername"
  451. export INWX_Password="password"
  452. ```
  453. Then you can issue your certificates with:
  454. ```
  455. acme.sh --issue --dns dns_inwx -d example.com -d www.example.com
  456. ```
  457. The `INWX_User` and `INWX_Password` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  458. ## 34. User Servercow API v1
  459. Create a new user from the servercow control center. Don't forget to activate **DNS API** for this user.
  460. ```
  461. export SERVERCOW_API_Username=username
  462. export SERVERCOW_API_Password=password
  463. ```
  464. Now you cann issue a cert:
  465. ```
  466. acme.sh --issue --dns dns_servercow -d example.com -d www.example.com
  467. ```
  468. Both, `SERVERCOW_API_Username` and `SERVERCOW_API_Password` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  469. ## 35. Use Namesilo.com API
  470. You'll need to generate an API key at https://www.namesilo.com/account_api.php
  471. Optionally you may restrict the access to an IP range there.
  472. ```
  473. export Namesilo_Key="xxxxxxxxxxxxxxxxxxxxxxxx"
  474. ```
  475. And now you can issue certs with:
  476. ```
  477. acme.sh --issue --dns dns_namesilo --dnssleep 900 -d example.com -d www.example.com
  478. ```
  479. ## 36. Use autoDNS (InternetX)
  480. [InternetX](https://www.internetx.com/) offers an [xml api](https://help.internetx.com/display/API/AutoDNS+XML-API) with your standard login credentials, set them like so:
  481. ```
  482. export AUTODNS_USER="yourusername"
  483. export AUTODNS_PASSWORD="password"
  484. export AUTODNS_CONTEXT="context"
  485. ```
  486. Then you can issue your certificates with:
  487. ```
  488. acme.sh --issue --dns dns_autodns -d example.com -d www.example.com
  489. ```
  490. The `AUTODNS_USER`, `AUTODNS_PASSWORD` and `AUTODNS_CONTEXT` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  491. ## 37. Use Azure DNS
  492. You have to create a service principal first. See:[How to use Azure DNS](../../../wiki/How-to-use-Azure-DNS)
  493. ```
  494. export AZUREDNS_SUBSCRIPTIONID="12345678-9abc-def0-1234-567890abcdef"
  495. export AZUREDNS_TENANTID="11111111-2222-3333-4444-555555555555"
  496. export AZUREDNS_APPID="3b5033b5-7a66-43a5-b3b9-a36b9e7c25ed"
  497. export AZUREDNS_CLIENTSECRET="1b0224ef-34d4-5af9-110f-77f527d561bd"
  498. ```
  499. Then you can issue your certificates with:
  500. ```
  501. acme.sh --issue --dns dns_azure -d example.com -d www.example.com
  502. ```
  503. `AZUREDNS_SUBSCRIPTIONID`, `AZUREDNS_TENANTID`,`AZUREDNS_APPID` and `AZUREDNS_CLIENTSECRET` settings will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  504. ## 38. Use selectel.com(selectel.ru) domain API to automatically issue cert
  505. First you need to login to your account to get your API key from: https://my.selectel.ru/profile/apikeys.
  506. ```sh
  507. export SL_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
  508. ```
  509. Ok, let's issue a cert now:
  510. ```
  511. acme.sh --issue --dns dns_selectel -d example.com -d www.example.com
  512. ```
  513. The `SL_Key` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  514. ## 39. Use zonomi.com domain API to automatically issue cert
  515. First you need to login to your account to find your API key from: http://zonomi.com/app/dns/dyndns.jsp
  516. Your will find your api key in the example urls:
  517. ```sh
  518. https://zonomi.com/app/dns/dyndns.jsp?host=example.com&api_key=1063364558943540954358668888888888
  519. ```
  520. ```sh
  521. export ZM_Key="1063364558943540954358668888888888"
  522. ```
  523. Ok, let's issue a cert now:
  524. ```
  525. acme.sh --issue --dns dns_zonomi -d example.com -d www.example.com
  526. ```
  527. The `ZM_Key` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
  528. ## 40. Use DreamHost DNS API
  529. DNS API keys may be created at https://panel.dreamhost.com/?tree=home.api.
  530. Ensure the created key has add and remove privelages.
  531. ```
  532. export DH_API_Key="<api key>"
  533. acme.sh --issue --dns dns_dreamhost -d example.com -d www.example.com
  534. ```
  535. The 'DH_API_KEY' will be saved in `~/.acme.sh/account.conf` and will
  536. be reused when needed.
  537. # Use custom API
  538. If your API is not supported yet, you can write your own DNS API.
  539. Let's assume you want to name it 'myapi':
  540. 1. Create a bash script named `~/.acme.sh/dns_myapi.sh`,
  541. 2. In the script you must have a function named `dns_myapi_add()` which will be called by acme.sh to add the DNS records.
  542. 3. Then you can use your API to issue cert like this:
  543. ```
  544. acme.sh --issue --dns dns_myapi -d example.com -d www.example.com
  545. ```
  546. For more details, please check our sample script: [dns_myapi.sh](dns_myapi.sh)
  547. See: https://github.com/Neilpang/acme.sh/wiki/DNS-API-Dev-Guide
  548. # Use lexicon DNS API
  549. https://github.com/Neilpang/acme.sh/wiki/How-to-use-lexicon-dns-api