{"action":"created","issue":{"url":"https://api.github.com/repos/senecajs/seneca-transport/issues/85","repository_url":"https://api.github.com/repos/senecajs/seneca-transport","labels_url":"https://api.github.com/repos/senecajs/seneca-transport/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/senecajs/seneca-transport/issues/85/comments","events_url":"https://api.github.com/repos/senecajs/seneca-transport/issues/85/events","html_url":"https://github.com/senecajs/seneca-transport/pull/85","id":140838166,"number":85,"title":"Adding HTTPS functionality for type web/http Seneca microservices.","user":{"login":"cesarecontini","id":6377363,"avatar_url":"https://avatars.githubusercontent.com/u/6377363?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarecontini","html_url":"https://github.com/cesarecontini","followers_url":"https://api.github.com/users/cesarecontini/followers","following_url":"https://api.github.com/users/cesarecontini/following{/other_user}","gists_url":"https://api.github.com/users/cesarecontini/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarecontini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarecontini/subscriptions","organizations_url":"https://api.github.com/users/cesarecontini/orgs","repos_url":"https://api.github.com/users/cesarecontini/repos","events_url":"https://api.github.com/users/cesarecontini/events{/privacy}","received_events_url":"https://api.github.com/users/cesarecontini/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/senecajs/seneca-transport/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-15T00:51:28Z","updated_at":"2016-03-15T15:16:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/senecajs/seneca-transport/pulls/85","html_url":"https://github.com/senecajs/seneca-transport/pull/85","diff_url":"https://github.com/senecajs/seneca-transport/pull/85.diff","patch_url":"https://github.com/senecajs/seneca-transport/pull/85.patch"},"body":"To enable HTTPS make sure to set the protocol option to 'https' and in the listen function set the serverOptions object with the keyPemPath and the certPemPath keys with string paths leading to the SSL's pem key & certificate files\r\n\r\n```js\r\nvar seneca = require('seneca')\r\n\r\nseneca()\r\n  .use(color)\r\n  .listen(\r\n    type: 'http',\r\n    port: '8000',\r\n    host: 'localhost',\r\n    protocol: 'https',\r\n    serverOptions : {\r\n      keyPemPath : './key.pem',\r\n      certPemPath : './certificate.pem'\r\n    }\r\n  )\r\n\r\nseneca()\r\n  .client({\r\n    type: 'http',\r\n    port: '8000',\r\n    host: 'localhost',\r\n    protocol: 'https'\r\n  })\r\n  .act('color:red')\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/senecajs/seneca-transport/issues/comments/196870877","html_url":"https://github.com/senecajs/seneca-transport/pull/85#issuecomment-196870877","issue_url":"https://api.github.com/repos/senecajs/seneca-transport/issues/85","id":196870877,"user":{"login":"geek","id":441346,"avatar_url":"https://avatars.githubusercontent.com/u/441346?v=3","gravatar_id":"","url":"https://api.github.com/users/geek","html_url":"https://github.com/geek","followers_url":"https://api.github.com/users/geek/followers","following_url":"https://api.github.com/users/geek/following{/other_user}","gists_url":"https://api.github.com/users/geek/gists{/gist_id}","starred_url":"https://api.github.com/users/geek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geek/subscriptions","organizations_url":"https://api.github.com/users/geek/orgs","repos_url":"https://api.github.com/users/geek/repos","events_url":"https://api.github.com/users/geek/events{/privacy}","received_events_url":"https://api.github.com/users/geek/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T15:16:04Z","updated_at":"2016-03-15T15:16:04Z","body":"@cesarecontini feel free to add tests to the [`http.test.js`](https://github.com/senecajs/seneca-transport/blob/master/test/http.test.js) file.  In wreck we have a few examples of some https tests you can borrow from: https://github.com/hapijs/wreck/blob/0a9e799c26104f93042ae02b62cd4fc69621029d/test/index.js#L289-L312"}}