{"action":"created","issue":{"url":"https://api.github.com/repos/dhruvbird/node-xmpp-bosh/issues/97","labels_url":"https://api.github.com/repos/dhruvbird/node-xmpp-bosh/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/dhruvbird/node-xmpp-bosh/issues/97/comments","events_url":"https://api.github.com/repos/dhruvbird/node-xmpp-bosh/issues/97/events","html_url":"https://github.com/dhruvbird/node-xmpp-bosh/pull/97","id":24615962,"number":97,"title":"switchable secure mode","user":{"login":"rusekr","id":5525262,"avatar_url":"https://avatars.githubusercontent.com/u/5525262?v=3","gravatar_id":"","url":"https://api.github.com/users/rusekr","html_url":"https://github.com/rusekr","followers_url":"https://api.github.com/users/rusekr/followers","following_url":"https://api.github.com/users/rusekr/following{/other_user}","gists_url":"https://api.github.com/users/rusekr/gists{/gist_id}","starred_url":"https://api.github.com/users/rusekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rusekr/subscriptions","organizations_url":"https://api.github.com/users/rusekr/orgs","repos_url":"https://api.github.com/users/rusekr/repos","events_url":"https://api.github.com/users/rusekr/events{/privacy}","received_events_url":"https://api.github.com/users/rusekr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2013-12-20T10:57:21Z","updated_at":"2015-04-22T16:30:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dhruvbird/node-xmpp-bosh/pulls/97","html_url":"https://github.com/dhruvbird/node-xmpp-bosh/pull/97","diff_url":"https://github.com/dhruvbird/node-xmpp-bosh/pull/97.diff","patch_url":"https://github.com/dhruvbird/node-xmpp-bosh/pull/97.patch"},"body":"Hello!\r\nWant to add option for starting https with wss instead of http server with ws.\r\n\r\nMinor changes - new feature. Some people may need this. For example we need secure websockets now for testing :) \r\nTried not to break coding style/modularization.\r\nAnd big thanks for original :)"},"comment":{"url":"https://api.github.com/repos/dhruvbird/node-xmpp-bosh/issues/comments/95256101","html_url":"https://github.com/dhruvbird/node-xmpp-bosh/pull/97#issuecomment-95256101","issue_url":"https://api.github.com/repos/dhruvbird/node-xmpp-bosh/issues/97","id":95256101,"user":{"login":"dhruvbird","id":89798,"avatar_url":"https://avatars.githubusercontent.com/u/89798?v=3","gravatar_id":"","url":"https://api.github.com/users/dhruvbird","html_url":"https://github.com/dhruvbird","followers_url":"https://api.github.com/users/dhruvbird/followers","following_url":"https://api.github.com/users/dhruvbird/following{/other_user}","gists_url":"https://api.github.com/users/dhruvbird/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvbird/subscriptions","organizations_url":"https://api.github.com/users/dhruvbird/orgs","repos_url":"https://api.github.com/users/dhruvbird/repos","events_url":"https://api.github.com/users/dhruvbird/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvbird/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T16:30:12Z","updated_at":"2015-04-22T16:30:12Z","body":"I'm getting the following error (not sure if I'm doing it right)\r\n\r\n1. ```bash scripts/generate_cert.sh```\r\n2. ```node run-server.js --secure --config=./bosh.conf.example.js```\r\n\r\nOutput:\r\n```\r\n$ node run-server.js --secure --config=./bosh.conf.example.js\r\n+----------------------------------------------------------------------------------------------------------------------------+\r\n| Starting BOSH server 'v0.7.10' on 'https://0.0.0.0:5280/^\\/http-bind(\\/+)?$/' at 'Wed Apr 22 2015 12:38:43 GMT-0400 (EDT)' |\r\n+----------------------------------------------------------------------------------------------------------------------------+\r\n\r\ncrypto.js:176\r\n      c.context.loadPKCS12(pfx);\r\n                ^\r\nError: not enough data\r\n    at Object.exports.createCredentials (crypto.js:176:17)\r\n    at Server (tls.js:1128:28)\r\n    at new Server (https.js:35:14)\r\n    at Object.exports.createServer (https.js:54:10)\r\n    at new HTTPServer (/home/dhruvbird/node-xmpp-bosh/src/http-server.js:340:33)\r\n    at Object.exports.createServer (/home/dhruvbird/node-xmpp-bosh/src/bosh.js:291:14)\r\n    at Object.exports.start_bosh (/home/dhruvbird/node-xmpp-bosh/src/main.js:58:25)\r\n    at main (/home/dhruvbird/node-xmpp-bosh/run-server.js:187:24)\r\n    at Object.<anonymous> (/home/dhruvbird/node-xmpp-bosh/run-server.js:201:1)\r\n    at Module._compile (module.js:456:26)\r\n```"}}