{"_id":"@greenlock/manager","_rev":"4-4f69e667ec70598665743d2fb3fbf1e9","name":"@greenlock/manager","dist-tags":{"latest":"3.1.0"},"versions":{"3.0.0":{"name":"@greenlock/manager","version":"3.0.0","description":"FileSytem-based Manager with optional encrypted Cloud backup for Greenlock SSL","main":"manager.js","scripts":{"test":"node tests"},"repository":{"type":"git","url":"https://git.rootprojects.org/root/greenlock-manager.js.git"},"keywords":["greenlock","manager","cloud","fs","ssl","file","system"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"MPL-2.0","dependencies":{"greenlock-manager-fs":"^3.0.5"},"devDependencies":{"greenlock-manager-test":"^3.1.1"},"gitHead":"5db2a0b10647e644f99a98d709f7e8b751bdccae","_id":"@greenlock/manager@3.0.0","_nodeVersion":"10.13.0","_npmVersion":"6.10.1","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"integrity":"sha512-ijgJrFdzJPmzrDk8aKXYoYR8LNfG3hXd9/s54ZY7IgxTulyPQ/qOPgl7sWgCxxLhZBzSY1xI6eC/6Y5TQ01agg==","shasum":"dfc8155d101fd9c28b1fd5b777ba34ab7180ed57","tarball":"https://registry.npmjs.org/@greenlock/manager/-/manager-3.0.0.tgz","fileCount":4,"unpackedSize":20767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwPrhCRA9TVsSAnZWagAAzYsP/3Q5ombBq6pet/vVONa9\nzgJWgjK87RJP/q95xm2HoWJwT5P9hM505iEKGaD/iaoq2W4K5lli8kA4cGbh\nY13fPU9Hzitcv8dz4OYhSZajTqK0pj2DMLAQRcqhDymMmAFMiB0qkHAXXtec\nVjHtzCrBSEAoADnD9zu7GflTLWHp+Tl7QcjKkgJFVuX5ydxium2Qwez72WQx\nJ4l4ypoADyiQlea1CrDaGZaIETWshQqpDJ2VBt6zn2sHD+LlPWG5fM0CxDnU\n7Hd45UGqn9ZFNpkafbjlSZq1A1HhCwpTqsN1cRmhFpaqlDnoB7FKRetcPJac\nOq4bSN0rm+UcUIp1ySbrcmkyODMDZT50daNP/yL7an4nGUfrPIt4MrCGVoGa\nshRvHygnfhWWtGJN5dgvIeQxMOVkemKep5wRoBTz3pZ8zIAJQDcMD9JljE8s\nxhbwZAVE6wI2suVxyxeNC9v3WIRtYGbXhc+RQVgHsh8oDdeGKMTBIcs9CGwf\nYsi0v9Q+ayFWnlwpc2eDx0bwUJAAARaoVZvFW5HcOobcMrnmRcX4vwW/Wg8R\nQfXeP4JRw74IrjyXhPEYw3OPt37DypxnCU6t3iU2/Tbtd40Teo9FST+g4ah1\ntw4gNu7uYkPPCZZEXV6nmLKm2JmSJulYfNhyvnmDIrtGYTCFhFckMFaZ44X+\njCPt\r\n=qQfy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAkCN/cr8JvXBuuavgm+a/mh/czy96XkV0+DGwZOZK6MAiEAzeqANKCQZ/ZDrDhX6uRqOACW3q48nO499MA8iN4JLnY="}]},"maintainers":[{"name":"thejshaver","email":"john@jshaver.net"},{"name":"coolaj86","email":"coolaj86@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/manager_3.0.0_1572928225377_0.34457069211784663"},"_hasShrinkwrap":false},"3.1.0":{"name":"@greenlock/manager","version":"3.1.0","description":"FileSytem-based Manager with optional encrypted Cloud backup for Greenlock SSL","main":"manager.js","scripts":{"test":"node tests"},"repository":{"type":"git","url":"https://git.rootprojects.org/root/greenlock-manager.js.git"},"keywords":["greenlock","manager","cloud","fs","ssl","file","system"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"MPL-2.0","dependencies":{"greenlock-manager-fs":"^3.1.0"},"devDependencies":{"greenlock-manager-test":"^3.1.1"},"gitHead":"38392fe872e2f34c0da5419c562b147fc8391cee","_id":"@greenlock/manager@3.1.0","_nodeVersion":"10.13.0","_npmVersion":"6.10.1","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"integrity":"sha512-PBy5CMK+j4oD7sj7hF5qE+xKEOSiiuL2hHd5X5ttEbtnTSDKjNeqbrR5k2ZddwVNdjOVeBIeuqlm81IFZ+Ftew==","shasum":"0f540fe94d2ab023fe5aea135fb02c025ab47c9e","tarball":"https://registry.npmjs.org/@greenlock/manager/-/manager-3.1.0.tgz","fileCount":4,"unpackedSize":21137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4tbUCRA9TVsSAnZWagAAgPYP/RFig8JN6jlnxVkbipPA\nEfKE/RCl5crnKgR8nJoPCBV9PeDmIAqCUWX7A4sznIaLO4nxeJpq5NXygE9v\nin+ibTkkx5wizIWcTt8nL9+GTdUVVo6CUReCADZHDW6PoVseHu2RAr4mkc2B\nh3TehqdG4GvbplYuGxx6UioPqKye4gO2Id6a7yn5O7+KRKeoHc9XyeVZ4lAA\n9xK5bCcrNcplAzBjHnteKioi+Zp0h5bzZCzTr3z/X0sP+triMuJci0kEiq1g\nIk4eraoqzydub02I0yv93PctR+0MaBabfXmban8KLZoNUhS4M7vOBtET5Izx\nixyMwW2qtENl807Ivj0HtryhgFwWptXfmKDxn8I+BUHMBSbpVrvTJTT9NQRP\nQimBdtq0m0nVN4lnthVsfLroMhxhQUCB+QqqWanttyNUahU+Y5ANXAtGXEcS\nzet2G5uE+SA+y5Gvfe3PyKiWc1/ho8fGP99GoNsDPe2K8V6gpfbArqPTyC3W\ntB+wq5yHT3GduItmGYw51dmhXJTXaiQ7NQFvJEFK/ssgGZ58Q72wTR5+ohAn\n1qJNBTM6mV8aeqS7bW3CGqct2sNNrOtxf7SbiLxR6+fn3ELz18XTSN2VBE/r\n0oXcSxoaZrrsZTlQy8D1PDtG0umn9n3D4rT6M8tYK6PawXgpYdZiw5551C5T\n6BTi\r\n=Esur\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5E13uSUp1WZEfVqroxD+UuoTO9VT9Q77tqeh3rghXLAiAmGFaPowTlb6T7+YM96o8V5lM5tzO5aUfmgkLu0gAbNg=="}]},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"thejshaver","email":"john@jshaver.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/manager_3.1.0_1575147220363_0.42814288224070784"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-05T04:30:25.167Z","3.0.0":"2019-11-05T04:30:25.537Z","modified":"2022-04-05T16:00:14.893Z","3.1.0":"2019-11-30T20:53:40.487Z"},"maintainers":[{"email":"hello@samlord.me","name":"sam-lord"},{"email":"coolaj86@gmail.com","name":"coolaj86"}],"description":"FileSytem-based Manager with optional encrypted Cloud backup for Greenlock SSL","keywords":["greenlock","manager","cloud","fs","ssl","file","system"],"repository":{"type":"git","url":"https://git.rootprojects.org/root/greenlock-manager.js.git"},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"MPL-2.0","readme":"# [Greenlock Manager](https://git.rootprojects.org/root/greenlock-manager.js)\n\nManages SSL Certificate issue and renewal for [Greenlock](https://git.rootprojects.org/root/greenlock-manager.js).\n\nSaves global and per-site config to a local File Sytem (current), with optional encrypted Cloud backup (coming soon).\n\n## Install\n\n```bash\nnpm install --save greenlock@4\nnpm install --save greenlock-manager@3\n```\n\n## Usage\n\nTo enable encrypted cloud backup, when it becomes available:\n\n```js\nnpx greenlock init --manager cloud --config-dir './greenlock.d'\n```\n\nFor local file system only:\n\n```js\nnpx greenlock init --manager fs --config-dir './greenlock.d'\n```\n\nOr, place this file in the root of your project:\n\n`.greenlockrc`:\n\n```json\n{\n    \"manager\": { \"module\": \"@greenlock/manager\" },\n    \"configDir\": \"./greenlock.d\"\n}\n```\n\n# Greenlock Manager CLI & API\n\nAll manager plugins have the **same API**.\n\nThe manager-specific implementation is overlaid by Greenlock with error handling and common utilities,\nand then exposed as documented here.\n\n**Note**: Most people do not need to (and should not) not use the JavaScript API.\nInstead, use the CLI (current) or Web API (coming soon).\n\n## Initialize the Manager\n\n```bash\nnpx greenlock init --manager cloud --config-dir './greenlock.d'\n```\n\nNote: You **should not** initialize greenlock directly as\nthis may make it incompatible with the CLI and Web GUI.\n\nInstead use the file generated by the CLI `init` (shown above).\n\n```js\nGreenlock.create({\n    manager: \"@greenlock/manager\",\n    cloud: true,\n    configDir: \"./greenlock.d\",\n    packageRoot: __dirname\n});\n```\n\n## Set Subscriber and other global Defaults\n\n```bash\nnpx greenlock defaults --subscriber-email jon@example.com --agree-to-terms true\n```\n\n```js\ngreenlock.manager.defaults({\n    subscriberEmail: \"jon@example.com\",\n    agreeToTerms: true\n});\n```\n\n# Site Management\n\nBy \"site\" we mean a primary domain and, optionally, secondary domains, to be listed on an ssl certificate,\nalong with any configuration that is necessary for getting and renewing those certificates.\n\n## Add a sites - domains and SSL certificates\n\n```bash\nnpx greenlock add --subject example.com --altnames 'example.com,www.example.com'\n```\n\n```js\ngreenlock.sites.add({\n    subject: \"example.com\",\n    altnames: [\"example.com\", \"www.example.com\"]\n});\n```\n\n## View site config\n\n```bash\nnpx greenlock config --subject example.com\n```\n\n```js\ngreenlock.sites.get({\n    servername: \"www.example.com\",\n    wildname: \"*.example.com\"\n});\n```\n\n## Update site config\n\n```bash\nnpx greenlock update --subject example.com --challenge-dns-01 acme-dns-01-ovh --challenge-dns-01-token xxxx\n```\n\n```js\ngreenlock.sites.update({\n    subject: \"www.example.com\",\n    challenges: {\n        \"dns-01\": {\n            module: \"acme-dns-01-ovh\",\n            token: \"xxxx\"\n        }\n    }\n});\n```\n\n## Remove a site\n\nTo stop automatic renewal of SSL certificates for a particular site.\nYou to restart renewal you must use `add()`.\n\n```bash\nnpx greenlock remove --subject example.com\n```\n\n```js\ngreenlock.sites.remove({\n    subject: \"example.com\"\n});\n```\n","readmeFilename":"README.md"}