Added instructions on how to get the Linode API key.
							parent
							
								
									59182dbc97
								
							
						
					
					
						commit
						dd17ac5045
					
				| 
						 | 
				
			
			@ -259,23 +259,25 @@ when needed.
 | 
			
		|||
 | 
			
		||||
## 14. Use Linode domain API
 | 
			
		||||
 | 
			
		||||
You will need to install the Linode CLI and set it up accordingly.
 | 
			
		||||
First you need to login to your Linode account to get your API Key.
 | 
			
		||||
[https://manager.linode.com/profile/api](https://manager.linode.com/profile/api)
 | 
			
		||||
 | 
			
		||||
[https://www.linode.com/docs/platform/linode-cli](https://www.linode.com/docs/platform/linode-cli)
 | 
			
		||||
Then add an API key with label *ACME* and copy the new key.
 | 
			
		||||
 | 
			
		||||
Follow the installation instructions appropriate for your platform and then run the configuration.
 | 
			
		||||
 | 
			
		||||
```linode configure
 | 
			
		||||
```sh
 | 
			
		||||
export LINODE_API_KEY="..."
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Make sure Linode CLI is working correctly before proceeding.
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
 | 
			
		||||
Ok, let's issue a cert now:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
acme.sh --issue --dns dns_linode --dnssleep 900 -d example.com -d www.example.com
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
The `LINODE_API_KEY` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
 | 
			
		||||
 | 
			
		||||
# Use custom API
 | 
			
		||||
 | 
			
		||||
If your API is not supported yet, you can write your own DNS API.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,12 +1,7 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
#!/usr/bin/env sh
 | 
			
		||||
 | 
			
		||||
#Author: Philipp Grosswiler <philipp.grosswiler@swiss-design.net>
 | 
			
		||||
 | 
			
		||||
#How to create the Linode API key:
 | 
			
		||||
#Sign into your Linode account and go to this page: https://manager.linode.com/profile/api
 | 
			
		||||
#Then add an API key with label ACME and copy the new key.
 | 
			
		||||
#export LINODE_API_KEY="..."
 | 
			
		||||
 | 
			
		||||
LINODE_API_URL="https://api.linode.com/?api_key=$LINODE_API_KEY&api_action="
 | 
			
		||||
 | 
			
		||||
########  Public functions #####################
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue