Compare commits
	
		
			No commits in common. "master" and "v3.0.1" have entirely different histories.
		
	
	
		
	
		
							
								
								
									
										52
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										52
									
								
								README.md
									
									
									
									
									
								
							| @ -30,25 +30,26 @@ Register and DuckDNS Domain and Save the API Token: | ||||
| 
 | ||||
| # Usage | ||||
| 
 | ||||
| Then you can use this with any compatible ACME library, | ||||
| such as Greenlock.js or ACME.js. | ||||
| 
 | ||||
| ### Greenlock CLI | ||||
| 
 | ||||
| ```bash | ||||
| npx greenlock defaults --challenge-dns-01 acme-dns-01-duckdns --challenge-dns-01-token xxxx | ||||
| ``` | ||||
| 
 | ||||
| ### Greenlock API | ||||
| First you create an instance with your credentials: | ||||
| 
 | ||||
| ```js | ||||
| greenlock.manager.defaults({ | ||||
| var dns01 = require('acme-dns-01-duckdns').create({ | ||||
| 	baseUrl: 'https://www.duckdns.org/update', // default | ||||
| 	token: 'xxxx' | ||||
| }); | ||||
| ``` | ||||
| 
 | ||||
| Then you can use it with any compatible ACME library, | ||||
| such as Greenlock.js or ACME.js. | ||||
| 
 | ||||
| ### Greenlock.js | ||||
| 
 | ||||
| ```js | ||||
| var Greenlock = require('greenlock-express'); | ||||
| var greenlock = Greenlock.create({ | ||||
| 	challenges: { | ||||
| 		'dns-01': { | ||||
| 			module: 'acme-dns-01-duckdns', | ||||
| 	        baseUrl: 'https://www.duckdns.org/update', // default | ||||
| 			token: 'xxxxxxx' | ||||
| 		} | ||||
| 		'dns-01': dns01 | ||||
| 		// ... | ||||
| 	} | ||||
| }); | ||||
| ``` | ||||
| @ -59,26 +60,11 @@ documentation for more details. | ||||
| 
 | ||||
| ### ACME.js | ||||
| 
 | ||||
| First you create an instance with your credentials: | ||||
| 
 | ||||
| ```js | ||||
| var dns01 = require('acme-dns-01-duckdns').create({ | ||||
| 	baseUrl: 'https://www.duckdns.org/update', // default | ||||
| 	token: 'xxxx' | ||||
| }); | ||||
| // TODO | ||||
| ``` | ||||
| 
 | ||||
| ```js | ||||
| acme.certificates.create({ | ||||
| 	account, | ||||
| 	accountKey, | ||||
| 	csr, | ||||
| 	domains, | ||||
| 	challenges: { 'dns-01': dns01 } | ||||
| }); | ||||
| ``` | ||||
| 
 | ||||
| See the [ACME.js](https://git.rootprojects.org/root/acme.js) for more details. | ||||
| See the [ACME.js](https://git.rootprojects.org/root/acme-v2.js) for more details. | ||||
| 
 | ||||
| ### Build your own | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user