{"_id":"@backrunner/acme-http-01-webroot","name":"@backrunner/acme-http-01-webroot","dist-tags":{"latest":"3.0.0-f1"},"versions":{"3.0.0-f1":{"name":"@backrunner/acme-http-01-webroot","version":"3.0.0-f1","description":"Webroot Authentication + Let's Encrypt for Node.js - ACME http-01 challenges w/ ACME.js and Greenlock.js","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://git.coolaj86.com/coolaj86/acme-http-01-webroot.js.git"},"keywords":["webroot","storage","http-01","letsencrypt","acme","greenlock"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"contributors":[{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"}],"license":"MPL-2.0","devDependencies":{"acme-challenge-test":"^3.3.2","dotenv":"^8.0.0"},"dependencies":{"@root/mkdirp":"^1.0.0"},"_id":"@backrunner/acme-http-01-webroot@3.0.0-f1","_nodeVersion":"16.13.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-3ouDTUGud8W9L9zwlY7cO7SqcL3owroAwaJJHY2/sJuGvb/yj6xGZ+WNOydcYUKUpEsDMj/g0fYmImcAr7hScQ==","shasum":"c45441775ce6f575f99e95e02efdb5604fd8d5de","tarball":"https://registry.npmjs.org/@backrunner/acme-http-01-webroot/-/acme-http-01-webroot-3.0.0-f1.tgz","fileCount":6,"unpackedSize":21406,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu9MOC51HEDVMxX1m1/SUy9Y49b7qpKNXa6ToOHKLdywIgEWKQ+XzW5dig81oGZv9xDHugW37KEn9/l74nJxR/8bE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiji73ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrrog/9FAhNN/xfMCIKpr9Uu6ADBKPCfl8FYlA0HDNvMVk3Z4OQby3Z\r\n340QgaZmkuiomP9jL9sP9foMLT6iDYL4p1eBBOL8psZYVX2jb6+8BANKOWvJ\r\n69CQ/2Sfeji8hPoEVokv3ngoVnM3a2/AAiOs/F2fCp+3jNO5V/SqvfhEPHr5\r\nklfO/j1g4+rqg9dRr4HcI9prGWEOn0AsRvGv/gFxqVJ88ZgYkfpqphwJHvd1\r\nKMztAPvkdX/a16jOqIpI3MhdtKHkaK6EMqR9Y4DQGKJVIkRFBc/Qrt8SZdcd\r\nU9sRRBiSTBUebiZLP5ynkju/C62LeK2eOnWfwgvzS81QrPDuCganJm7cwAPW\r\nb6WuMFOykNWu0rXlk+e4DxYVNtmpdgBCLdaKR5dKo2IDRill7dB2aQV1Jt6v\r\nIb1RslCVCqpoLtdPH8j+FJmIWgATm6Cml8kPnVkq4rho+0MXDl4yB0krlki1\r\nEJDhaCgLH+7dTb5xPJep0T1iD4BQwjP0SugsODPXtIveSS5UeH37m32OYp4e\r\nvBo/SOcVLFRRAIJsuXqJYQSnf2uxeW52RScediv0Ql8bTkENVht6dUnaGl9x\r\nWChAxyAakalRJ+su5+cnwqD6yus5dNn0arzZpOPVsfTgGbUqfno4NDY9Vedx\r\nOnfeyvKUq+8UuXI5Ma2JqJZW63bFQkXdKdI=\r\n=uuiq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"backrunner","email":"dev@backrunner.top"},"directories":{},"maintainers":[{"name":"backrunner","email":"dev@backrunner.top"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/acme-http-01-webroot_3.0.0-f1_1653485303705_0.2496284645774578"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-25T13:28:23.623Z","3.0.0-f1":"2022-05-25T13:28:23.851Z","modified":"2022-05-25T13:28:24.113Z"},"maintainers":[{"name":"backrunner","email":"dev@backrunner.top"}],"description":"Webroot Authentication + Let's Encrypt for Node.js - ACME http-01 challenges w/ ACME.js and Greenlock.js","keywords":["webroot","storage","http-01","letsencrypt","acme","greenlock"],"repository":{"type":"git","url":"https://git.coolaj86.com/coolaj86/acme-http-01-webroot.js.git"},"contributors":[{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"}],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"MPL-2.0","readme":"# [acme-http-01-webroot.js](https://git.rootprojects.org/root/acme-http-01-webroot.js) | a [Root](https://rootprojects.org/) project\n\nWebroot Authentication + Let's Encrypt for Node.js - ACME http-01 challenges w/ ACME.js and Greenlock.js\n\nHandles ACME http-01 challenges. Compatible with ACME.js and Greenlock.js. Passes acme-http-01-test.\n\n# Features\n\n-   Compatible\n    -   Let’s Encrypt v2.1 / ACME draft 18 (2019)\n    -   Works with your web root\n        -   Apache\n        -   Nginx\n        -   Lighttpd\n    -   ACME.js, Greenlock.js, and others\n-   Quality\n    -   node v6 compatible VanillaJS\n    -   < 150 lines of code\n    -   Zero Dependencies\n\n# Install\n\n```js\nnpm install --save acme-http-01-webroot\n```\n\n# Usage\n\nFirst you create an instance with your credentials:\n\n```js\nvar http01 = require('acme-http-01-webroot').create({\n\twebroot: '~/.local/tmp/acme-challenge' // default\n});\n```\n\nTemplate example:\n\n```js\nvar http01 = require('acme-http-01-webroot').create({\n\twebroot: '/srv/www/{domain}/.well-known/acme-challenge'\n});\n```\n\nThen you can use it with any compatible ACME library, such as Greenlock.js or ACME.js.\n\n## Greenlock.js\n\n```js\nvar Greenlock = require('greenlock-express');\nvar greenlock = Greenlock.create({\n\tchallenges: {\n\t\t'http-01': http01\n\t}\n\t// ...\n});\n```\n\nSee [Greenlock Express](https://git.rootprojects.org/root/greenlock-express.js) and/or [Greenlock.js](https://git.rootprojects.org/root/greenlock.js) documentation for more details.\n\n## ACME.js\n\n```js\n// TODO\n```\n\nSee the [ACME.js](https://git.rootprojects.org/root/acme-v2.js) for more details.\n\n## Build your own\n\nThere are only 4 methods:\n\n-   `init(config)`\n-   `set(opts)`\n-   `get(opts)`\n-   `remove(opts)`\n\n```js\nhttp01\n\t.set({\n\t\tidentifier: { value: 'foo.example.co.uk' },\n\t\ttoken: 'xxxx'\n\t\tkeyAuthorization: 'xxxx.yyyy'\n\t})\n\t.then(function() {\n\t\tconsole.log('Saved ACME key authorization file');\n\t})\n\t.catch(function(err) {\n\t\tconsole.error('Failed to save ACME key authorization file');\n\t\tconsole.error(err);\n\t});\n```\n\nSee acme-http-01-test for more implementation details.\n\n# Tests\n\n```bash\n# node ./test.js domain-zone api-token\nnode ./test.js example.com xxxxxx\n```\n\n# Authors\n\n-   AJ ONeal\n\nSee AUTHORS for contact info.\n\n# Legal\n\n[acme-http-01-webroot.js](https://git.coolaj86.com/coolaj86/acme-http-01-webroot.js) | MPL-2.0 | [Terms of Use](https://therootcompany.com/legal/#terms) | [Privacy Policy](https://therootcompany.com/legal/#privacy)\n\nCopyright 2019 AJ ONeal\nCopyright 2019 The Root Group LLC\n","readmeFilename":"README.md"}