{"name":"https-pem","version":"1.0.0","description":"Self-signed PEM key and certificate ready for use in your HTTPS server","main":"index.js","scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/watson/https-pem.git"},"keywords":["tls","https","pem","key","keys","cert","certificate","selfsigned","self-signed","development","options","server"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk","url":"https://twitter.com/wa7son"},"license":"MIT","bugs":{"url":"https://github.com/watson/https-pem/issues"},"homepage":"https://github.com/watson/https-pem#readme","devDependencies":{"standard":"^6.0.8"},"coordinates":[55.68771779999999,12.5956038],"gitHead":"722584a08c6d406f8484f3c5df71133ff52f3f47","_id":"https-pem@1.0.0","_shasum":"28cdd9b45d7a052bdd6d4cb7d29f9a3200ba76c1","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"28cdd9b45d7a052bdd6d4cb7d29f9a3200ba76c1","tarball":"http://registry-npm.ywwl.com/https-pem/download/https-pem-1.0.0.tgz","integrity":"sha512-z6Olf76Z6ezaaJ3ojg/BJzXanYl/ZJipw9Ejgf/obeUHMapDf96btlvepSWPq3Er0Ymu7ouF52fuDYXKoY7cCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLf1CJwRGjsFmE1pZtd4ehocrryXH1cz4EpuQsI3gzqgIhAKRcvwIv3XL933MQEoDm7FmJxxAHEUik/BQt42Lj6e5U"}],"size":3363,"noattachment":false,"key":"/https-pem/-/https-pem-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/https-pem-1.0.0.tgz_1461370671802_0.594308027299121"},"directories":{},"readme":"# https-pem\n\nSelf-signed PEM key and certificate ready for use in your HTTPS server.\n\nA dead simple way to get an HTTPS server running in development with no\nneed to generate the self signed PEM key and certificate.\n\n[![Build status](https://travis-ci.org/watson/https-pem.svg?branch=master)](https://travis-ci.org/watson/https-pem)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n## Installation\n\n```\nnpm install https-pem\n```\n\n**Warning:** Upon installation a private key and a self signed\ncertificate will be generated inside `./node_modules/https-pem`. The\ncertificate is valid for 365 days and no attempt have been made to make\nthis secure in any way. I suggest only using this for testing and\ndevelopment where you just need an easy and quick way to run an HTTPS\nserver with Node.js.\n\n## Example Usage\n\n```js\nvar https = require('https')\nvar pem = require('https-pem')\n\nvar server = https.createServer(pem, function (req, res) {\n  res.end('This is servered over HTTPS')\n})\n\nserver.listen(443, function () {\n  console.log('The server is running on https://localhost')\n})\n```\n\n### Connecting\n\nWhen connecting to an HTTPS server from Node.js that uses a self-signed\ncertificate, `https.request` will normally emit an `error` and refuse to\ncomplete the reuqest. To get around that simply set the\n`rejectUnauthorized` option to `false`:\n\n```js\nvar opts = { rejectUnauthorized: false }\n\nvar req = https.request(opts, function (res) {\n  // ...\n})\n\nreq.end()\n```\n\nIf using `curl` to connect to a Node.js HTTPS server using a\nself-signed certificate, use the `-k` option:\n\n```\ncurl -k https://localhost:443\n```\n\n## API\n\nThe `https-pem` module simply exposes an object with two properties:\n`key` and `cert`.\n\n### `pem.key`\n\nThe private key (RSA).\n\n### `pem.cert`\n\nThe certificate.\n\n## License\n\nMIT\n","publish_time":1461370673909,"_cnpm_publish_time":1461370673909,"dist-tags":{"latest":"3.0.0"}}