Compare commits
	
		
			6 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 2fd9678ab5 | |||
|  | 7a6c2ae573 | ||
|  | 4758dc2bd2 | ||
| d28d82130c | |||
|  | 3a41c3006c | ||
| bfe1737b9b | 
							
								
								
									
										2
									
								
								AUTHORS
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								AUTHORS
									
									
									
									
									
								
							| @ -1,3 +1,3 @@ | |||||||
| ISRG | ISRG | ||||||
| Anatol Sommer <anatol@anatol.at> | Anatol Sommer <anatol@anatol.at> | ||||||
| AJ ONeal <aj@daplie.com> (https://daplie.com/) | AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/) | ||||||
|  | |||||||
							
								
								
									
										38
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								README.md
									
									
									
									
									
								
							| @ -1,21 +1,6 @@ | |||||||
| <!-- BANNER_TPL_BEGIN --> |  | ||||||
| 
 |  | ||||||
| About Daplie: We're taking back the Internet! |  | ||||||
| -------------- |  | ||||||
| 
 |  | ||||||
| Down with Google, Apple, and Facebook! |  | ||||||
| 
 |  | ||||||
| We're re-decentralizing the web and making it read-write again - one home cloud system at a time. |  | ||||||
| 
 |  | ||||||
| Tired of serving the Empire? Come join the Rebel Alliance: |  | ||||||
| 
 |  | ||||||
| <a href="mailto:jobs@daplie.com">jobs@daplie.com</a> | [Invest in Daplie on Wefunder](https://daplie.com/invest/) | [Pre-order Cloud](https://daplie.com/preorder/), The World's First Home Server for Everyone |  | ||||||
| 
 |  | ||||||
| <!-- BANNER_TPL_END --> |  | ||||||
| 
 |  | ||||||
| # le-acme-core | # le-acme-core | ||||||
| 
 | 
 | ||||||
| Looking for **letiny-core**? Check the [v1.x branch](https://github.com/Daplie/le-acme-core/tree/v1.x). | Looking for **letiny-core**? Check the [v1.x branch](https://git.coolaj86.com/coolaj86/le-acme-core.js/tree/v1.x). | ||||||
| 
 | 
 | ||||||
| <!-- rename to le-acme-core --> | <!-- rename to le-acme-core --> | ||||||
| 
 | 
 | ||||||
| @ -28,14 +13,17 @@ Supports all of: | |||||||
|   * browser WebCrypto (not implemented, but... Let's Encrypt over WebRTC anyone?) |   * browser WebCrypto (not implemented, but... Let's Encrypt over WebRTC anyone?) | ||||||
|   * any javascript implementation |   * any javascript implementation | ||||||
| 
 | 
 | ||||||
|  | # NEW: Let's Encrypt v2 Support | ||||||
|  | Let's Encrypt v2 (aka ACME v2 or ACME draft 11) is available in [acme-v2.js](https://git.coolaj86.com/coolaj86/acme-v2.js) | ||||||
|  | 
 | ||||||
| ### These aren't the droids you're looking for | ### These aren't the droids you're looking for | ||||||
| 
 | 
 | ||||||
| This is a library / framework for building letsencrypt clients. | This is a library / framework for building letsencrypt clients. | ||||||
| You probably want one of these pre-built clients instead: | You probably want one of these pre-built clients instead: | ||||||
| 
 | 
 | ||||||
|   * [`letsencrypt`](https://github.com/Daplie/node-letsencrypt) (compatible with the official client) |   * [`letsencrypt`](https://git.coolaj86.com/coolaj86/greenlock.js) (compatible with the official client) | ||||||
|   * `letiny` (lightweight client cli) |   * `letiny` (lightweight client cli) | ||||||
|   * [`letsencrypt-express`](https://github.com/Daplie/letsencrypt-express) (automatic https for express) |   * [`letsencrypt-express`](https://git.coolaj86.com/coolaj86/greenlock-express.js) (automatic https for express) | ||||||
| 
 | 
 | ||||||
| ## Install & Usage: | ## Install & Usage: | ||||||
| 
 | 
 | ||||||
| @ -94,7 +82,7 @@ Install le-acme-core and its dependencies. **Note**: it's okay if you're on wind | |||||||
| and `ursa` fails to compile. It'll still work. | and `ursa` fails to compile. It'll still work. | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| git clone https://github.com/Daplie/le-acme-core.git ~/le-acme-core | git clone https://git.coolaj86.com/coolaj86/le-acme-core.js.git ~/le-acme-core | ||||||
| pushd ~/le-acme-core | pushd ~/le-acme-core | ||||||
| 
 | 
 | ||||||
| npm install | npm install | ||||||
| @ -168,7 +156,7 @@ ACME.Acme                               // Signs requests with JWK | |||||||
| 
 | 
 | ||||||
| Below you'll find a stripped-down example. You can see the full example in the example folder. | Below you'll find a stripped-down example. You can see the full example in the example folder. | ||||||
| 
 | 
 | ||||||
| * [example/](https://github.com/Daplie/le-acme-core/blob/master/example/) | * [example/](https://git.coolaj86.com/coolaj86/le-acme-core.js/blob/master/example/) | ||||||
| 
 | 
 | ||||||
| #### Register Account & Domain | #### Register Account & Domain | ||||||
| 
 | 
 | ||||||
| @ -238,7 +226,7 @@ function runDemo() { | |||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| **But wait**, there's more! | **But wait**, there's more! | ||||||
| See [example/letsencrypt.js](https://github.com/Daplie/le-acme-core/blob/master/example/letsencrypt.js) | See [example/letsencrypt.js](https://git.coolaj86.com/coolaj86/le-acme-core.js/blob/master/example/letsencrypt.js) | ||||||
| 
 | 
 | ||||||
| #### Run a Server on 80, 443, and 5001 (https/tls) | #### Run a Server on 80, 443, and 5001 (https/tls) | ||||||
| 
 | 
 | ||||||
| @ -285,7 +273,7 @@ http.createServer(acmeResponder).listen(80, function () { | |||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| **But wait**, there's more! | **But wait**, there's more! | ||||||
| See [example/serve.js](https://github.com/Daplie/le-acme-core/blob/master/example/serve.js) | See [example/serve.js](https://git.coolaj86.com/coolaj86/le-acme-core.js/blob/master/example/serve.js) | ||||||
| 
 | 
 | ||||||
| #### Put some storage in place | #### Put some storage in place | ||||||
| 
 | 
 | ||||||
| @ -326,14 +314,14 @@ var certStore = { | |||||||
| **But wait**, there's more! | **But wait**, there's more! | ||||||
| See | See | ||||||
| 
 | 
 | ||||||
| * [example/challenge-store.js](https://github.com/Daplie/le-acme-core/blob/master/challenge-store.js) | * [example/challenge-store.js](https://git.coolaj86.com/coolaj86/le-acme-core.js/blob/master/challenge-store.js) | ||||||
| * [example/cert-store.js](https://github.com/Daplie/le-acme-core/blob/master/cert-store.js) | * [example/cert-store.js](https://git.coolaj86.com/coolaj86/le-acme-core.js/blob/master/cert-store.js) | ||||||
| 
 | 
 | ||||||
| ## Authors | ## Authors | ||||||
| 
 | 
 | ||||||
|   * ISRG |   * ISRG | ||||||
|   * Anatol Sommer  (https://github.com/anatolsommer) |   * Anatol Sommer  (https://github.com/anatolsommer) | ||||||
|   * AJ ONeal <aj@daplie.com> (https://daplie.com) |   * AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com) | ||||||
| 
 | 
 | ||||||
| ## Licence | ## Licence | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| /*! | /*! | ||||||
|  * letiny-core |  * letiny-core | ||||||
|  * Copyright(c) 2015 AJ ONeal <aj@daplie.com> https://daplie.com
 |  * Copyright(c) 2015 AJ ONeal <coolaj86@gmail.com> https://coolaj86.com
 | ||||||
|  * Apache-2.0 OR MIT (and hence also MPL 2.0) |  * Apache-2.0 OR MIT (and hence also MPL 2.0) | ||||||
| */ | */ | ||||||
| 'use strict'; | 'use strict'; | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| /*! | /*! | ||||||
|  * letiny-core |  * letiny-core | ||||||
|  * Copyright(c) 2015 AJ ONeal <aj@daplie.com> https://daplie.com
 |  * Copyright(c) 2015 AJ ONeal <coolaj86@gmail.com> https://coolaj86.com
 | ||||||
|  * Apache-2.0 OR MIT (and hence also MPL 2.0) |  * Apache-2.0 OR MIT (and hence also MPL 2.0) | ||||||
| */ | */ | ||||||
| 'use strict'; | 'use strict'; | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| /*! | /*! | ||||||
|  * letiny-core |  * letiny-core | ||||||
|  * Copyright(c) 2015 AJ ONeal <aj@daplie.com> https://daplie.com
 |  * Copyright(c) 2015 AJ ONeal <coolaj86@gmail.com> https://coolaj86.com
 | ||||||
|  * Apache-2.0 OR MIT (and hence also MPL 2.0) |  * Apache-2.0 OR MIT (and hence also MPL 2.0) | ||||||
| */ | */ | ||||||
| 'use strict'; | 'use strict'; | ||||||
| @ -111,8 +111,7 @@ function runDemo() { | |||||||
| //
 | //
 | ||||||
| closer = serve.init({ | closer = serve.init({ | ||||||
|   LeCore: LeCore |   LeCore: LeCore | ||||||
|   // needs a default key and cert chain, anything will do
 | , tlsOptions: {} | ||||||
| , tlsOptions: require('localhost.daplie.me-certificates') |  | ||||||
| , challengeStore: challengeStore | , challengeStore: challengeStore | ||||||
| , certStore: certStore | , certStore: certStore | ||||||
| }); | }); | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| /*! | /*! | ||||||
|  * letiny-core |  * letiny-core | ||||||
|  * Copyright(c) 2015 AJ ONeal <aj@daplie.com> https://daplie.com
 |  * Copyright(c) 2015 AJ ONeal <coolaj86@gmail.com> https://coolaj86.com
 | ||||||
|  * Apache-2.0 OR MIT (and hence also MPL 2.0) |  * Apache-2.0 OR MIT (and hence also MPL 2.0) | ||||||
| */ | */ | ||||||
| 'use strict'; | 'use strict'; | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| /*! | /*! | ||||||
|  * letiny-core |  * letiny-core | ||||||
|  * Copyright(c) 2015 AJ ONeal <aj@daplie.com> https://daplie.com
 |  * Copyright(c) 2015 AJ ONeal <coolaj86@gmail.com> https://coolaj86.com
 | ||||||
|  * Apache-2.0 OR MIT (and hence also MPL 2.0) |  * Apache-2.0 OR MIT (and hence also MPL 2.0) | ||||||
| */ | */ | ||||||
| 'use strict'; | 'use strict'; | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ const version = pkgJSON.version; | |||||||
| const os = require('os'); | const os = require('os'); | ||||||
| 
 | 
 | ||||||
| const uaDefaults = { | const uaDefaults = { | ||||||
|   pkg: `Daplie Greenlock/${version}` |   pkg: `Greenlock/${version}` | ||||||
|   , os: ` (${os.type()}; ${process.arch} ${os.platform()} ${os.release()})` |   , os: ` (${os.type()}; ${process.arch} ${os.platform()} ${os.release()})` | ||||||
|   , node: ` Node.js/${process.version}` |   , node: ` Node.js/${process.version}` | ||||||
|   , user: '' |   , user: '' | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								node.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								node.js
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| /*! | /*! | ||||||
|  * letiny-core |  * letiny-core | ||||||
|  * Copyright(c) 2015 AJ ONeal <aj@daplie.com> https://daplie.com
 |  * Copyright(c) 2015 AJ ONeal <coolaj86@gmail.com> https://coolaj86.com
 | ||||||
|  * Apache-2.0 OR MIT (and hence also MPL 2.0) |  * Apache-2.0 OR MIT (and hence also MPL 2.0) | ||||||
| */ | */ | ||||||
| 'use strict'; | 'use strict'; | ||||||
|  | |||||||
							
								
								
									
										11
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								package.json
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "le-acme-core", |   "name": "le-acme-core", | ||||||
|   "version": "2.1.1", |   "version": "2.1.4", | ||||||
|   "description": "A framework for building letsencrypt clients, forked from letiny", |   "description": "A framework for building letsencrypt clients, forked from letiny", | ||||||
|   "main": "node.js", |   "main": "node.js", | ||||||
|   "browser": "browser.js", |   "browser": "browser.js", | ||||||
| @ -10,13 +10,13 @@ | |||||||
|   }, |   }, | ||||||
|   "repository": { |   "repository": { | ||||||
|     "type": "git", |     "type": "git", | ||||||
|     "url": "git+https://git.daplie.com/Daplie/le-acme-core.git" |     "url": "git+https://git.coolaj86.com/coolaj86/le-acme-core.js.git" | ||||||
|   }, |   }, | ||||||
|   "license": "MPL-2.0", |   "license": "MPL-2.0", | ||||||
|   "bugs": { |   "bugs": { | ||||||
|     "url": "https://git.daplie.com/Daplie/le-acme-core/issues" |     "url": "https://git.coolaj86.com/coolaj86/le-acme-core.js/issues" | ||||||
|   }, |   }, | ||||||
|   "homepage": "https://git.daplie.com/Daplie/le-acme-core#readme", |   "homepage": "https://git.coolaj86.com/coolaj86/le-acme-core.js#readme", | ||||||
|   "keywords": [ |   "keywords": [ | ||||||
|     "le-acme", |     "le-acme", | ||||||
|     "le-acme-", |     "le-acme-", | ||||||
| @ -30,13 +30,12 @@ | |||||||
|   ], |   ], | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "request": "^2.74.0", |     "request": "^2.74.0", | ||||||
|     "rsa-compat": "^1.2.7" |     "rsa-compat": "^1.3.2" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "better-assert": "^1.0.2", |     "better-assert": "^1.0.2", | ||||||
|     "chai": "^3.5.0", |     "chai": "^3.5.0", | ||||||
|     "chai-string": "^1.3.0", |     "chai-string": "^1.3.0", | ||||||
|     "localhost.daplie.me-certificates": "^1.3.0", |  | ||||||
|     "request-debug": "^0.2.0" |     "request-debug": "^0.2.0" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ const chai = require('chai'); | |||||||
| chai.use(require('chai-string')); | chai.use(require('chai-string')); | ||||||
| const expect = chai.expect; | const expect = chai.expect; | ||||||
| 
 | 
 | ||||||
| const productId = 'Daplie Greenlock'; | const productId = 'Greenlock'; | ||||||
| const UA = 'User-Agent'; | const UA = 'User-Agent'; | ||||||
| 
 | 
 | ||||||
| function checkRequest(req, done, tester) { | function checkRequest(req, done, tester) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user