{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/12335","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/12335/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/12335/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/12335/events","html_url":"https://github.com/nodejs/node/issues/12335","id":220907266,"number":12335,"title":"crypto sign error  Error: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group","user":{"login":"lin-hun","id":7136386,"avatar_url":"https://avatars3.githubusercontent.com/u/7136386?v=3","gravatar_id":"","url":"https://api.github.com/users/lin-hun","html_url":"https://github.com/lin-hun","followers_url":"https://api.github.com/users/lin-hun/followers","following_url":"https://api.github.com/users/lin-hun/following{/other_user}","gists_url":"https://api.github.com/users/lin-hun/gists{/gist_id}","starred_url":"https://api.github.com/users/lin-hun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lin-hun/subscriptions","organizations_url":"https://api.github.com/users/lin-hun/orgs","repos_url":"https://api.github.com/users/lin-hun/repos","events_url":"https://api.github.com/users/lin-hun/events{/privacy}","received_events_url":"https://api.github.com/users/lin-hun/received_events","type":"User","site_admin":false},"labels":[{"id":155267357,"url":"https://api.github.com/repos/nodejs/node/labels/crypto","name":"crypto","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-11T10:30:25Z","updated_at":"2017-04-11T13:06:08Z","closed_at":null,"body":"<!--\r\nThank you for reporting an issue.\r\n\r\nThis issue tracker is for bugs and issues found within Node.js core.\r\nIf you require more general support please file an issue on our help\r\nrepo. https://github.com/nodejs/help\r\n\r\n\r\nPlease fill in as much of the template below as you're able.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you are able.\r\n-->\r\n\r\n* **Version**:v6.10.1 (yum install nodejs)\r\n* **Platform**:centos 7\r\n* **Subsystem**:process\r\n\r\n<!-- Enter your issue details below this comment. -->\r\nI use this to crypto,but make error on server,even it works on my mac.\r\nI tried to update openssl to latest, it didnt.\r\nplz help!!!\r\n```javascript\r\n  var signer = crypto.createSign('sha256');\r\n  signer.update(str, 'utf8');\r\n  return signer.sign(this.private_key, 'base64');\r\n```\r\n```\r\nError: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group\r\n    at Error (native)\r\n    at Sign.sign (crypto.js:283:26)\r\n    at Sig._sign (/home/work/weapp-node/utils/tls.js:64:17)\r\n    at Sig.genSig (/home/work/weapp-node/utils/tls.js:121:24)\r\n    at token (/home/work/weapp-node/controller/live.js:21:25)\r\n    at Layer.handle [as handle_request] (/home/work/weapp-node/node_modules/._express@4.15.2@express/lib/router/layer.js:95:5)\r\n    at next (/home/work/weapp-node/node_modules/._express@4.15.2@express/lib/router/route.js:137:13)\r\n    at Route.dispatch (/home/work/weapp-node/node_modules/._express@4.15.2@express/lib/router/route.js:112:3)\r\n    at Layer.handle [as handle_request] (/home/work/weapp-node/node_modules/._express@4.15.2@express/lib/router/layer.js:95:5)\r\n    at /home/work/weapp-node/node_modules/._express@4.15.2@express/lib/router/index.js:281:22\r\n```\r\nI tried to run this,get the same error\r\n``` javascript\r\nvar  crypto = require('crypto');\r\nvar  sign = crypto.createSign('RSA-SHA256');\r\nsign.update('some data to sign');\r\nvar  privateKey = '-----BEGIN PRIVATE KEY-----\\nMIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgSpA0MBfhbj1LQzZd3+dQ\\ntsuRgFBF3F5E8wn4O+8lyFmhRANCAARSEhlA2lNcUqHZm6ipgkEvzv2cxEWQB+Hf\\nAe87+I33rLbwJkXRscoy0PSdfkrwxTaz7jIoyKSprrzToMTT7SF+\\n-----END PRIVATE KEY-----\\n'\r\nconsole.log(sign.sign(privateKey, 'hex'));\r\n\r\nError: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group\r\n    at Error (native)\r\n    at Sign.sign (crypto.js:283:26)\r\n    at repl:1:18\r\n    at sigintHandlersWrap (vm.js:22:35)\r\n    at sigintHandlersWrap (vm.js:73:12)\r\n    at ContextifyScript.Script.runInThisContext (vm.js:21:12)\r\n    at REPLServer.defaultEval (repl.js:340:29)\r\n    at bound (domain.js:280:14)\r\n    at REPLServer.runBound [as eval] (domain.js:293:12)\r\n    at REPLServer.<anonymous> (repl.js:538:10)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/293254808","html_url":"https://github.com/nodejs/node/issues/12335#issuecomment-293254808","issue_url":"https://api.github.com/repos/nodejs/node/issues/12335","id":293254808,"user":{"login":"lin-hun","id":7136386,"avatar_url":"https://avatars3.githubusercontent.com/u/7136386?v=3","gravatar_id":"","url":"https://api.github.com/users/lin-hun","html_url":"https://github.com/lin-hun","followers_url":"https://api.github.com/users/lin-hun/followers","following_url":"https://api.github.com/users/lin-hun/following{/other_user}","gists_url":"https://api.github.com/users/lin-hun/gists{/gist_id}","starred_url":"https://api.github.com/users/lin-hun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lin-hun/subscriptions","organizations_url":"https://api.github.com/users/lin-hun/orgs","repos_url":"https://api.github.com/users/lin-hun/repos","events_url":"https://api.github.com/users/lin-hun/events{/privacy}","received_events_url":"https://api.github.com/users/lin-hun/received_events","type":"User","site_admin":false},"created_at":"2017-04-11T13:06:08Z","updated_at":"2017-04-11T13:06:08Z","body":"Cooool,thats work.\r\nBut the yum package isnt official?"}}
{"actor":{"display_login":"lin-hun"}}