{"action":"created","issue":{"url":"https://api.github.com/repos/crypto-browserify/publicEncrypt/issues/7","labels_url":"https://api.github.com/repos/crypto-browserify/publicEncrypt/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/crypto-browserify/publicEncrypt/issues/7/comments","events_url":"https://api.github.com/repos/crypto-browserify/publicEncrypt/issues/7/events","html_url":"https://github.com/crypto-browserify/publicEncrypt/issues/7","id":85707147,"number":7,"title":"module is packaged with .pem files ","user":{"login":"zhaizhai","id":2179191,"avatar_url":"https://avatars.githubusercontent.com/u/2179191?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaizhai","html_url":"https://github.com/zhaizhai","followers_url":"https://api.github.com/users/zhaizhai/followers","following_url":"https://api.github.com/users/zhaizhai/following{/other_user}","gists_url":"https://api.github.com/users/zhaizhai/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaizhai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaizhai/subscriptions","organizations_url":"https://api.github.com/users/zhaizhai/orgs","repos_url":"https://api.github.com/users/zhaizhai/repos","events_url":"https://api.github.com/users/zhaizhai/events{/privacy}","received_events_url":"https://api.github.com/users/zhaizhai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crypto-browserify/publicEncrypt/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-06T06:12:15Z","updated_at":"2015-09-11T00:47:42Z","closed_at":null,"body":"Not sure if this is the right place, but I am using browserify in a chrome extension that I think uses this module somewhere down the chain of dependencies. The presence of .pem files (even though they are just tests) is causing problems, because chrome does not want to pack an extension that has .pem files (in case you accidentally distribute your real keys). \r\n\r\nThis is largely chrome's fault for being so restrictive and providing no mechanism that I know of to override the .pem file detection, but it would be very helpful if you could somehow get rid of the .pem files or rename them to something else. Thanks!"},"comment":{"url":"https://api.github.com/repos/crypto-browserify/publicEncrypt/issues/comments/139419986","html_url":"https://github.com/crypto-browserify/publicEncrypt/issues/7#issuecomment-139419986","issue_url":"https://api.github.com/repos/crypto-browserify/publicEncrypt/issues/7","id":139419986,"user":{"login":"RobbyChapman","id":3663044,"avatar_url":"https://avatars.githubusercontent.com/u/3663044?v=3","gravatar_id":"","url":"https://api.github.com/users/RobbyChapman","html_url":"https://github.com/RobbyChapman","followers_url":"https://api.github.com/users/RobbyChapman/followers","following_url":"https://api.github.com/users/RobbyChapman/following{/other_user}","gists_url":"https://api.github.com/users/RobbyChapman/gists{/gist_id}","starred_url":"https://api.github.com/users/RobbyChapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobbyChapman/subscriptions","organizations_url":"https://api.github.com/users/RobbyChapman/orgs","repos_url":"https://api.github.com/users/RobbyChapman/repos","events_url":"https://api.github.com/users/RobbyChapman/events{/privacy}","received_events_url":"https://api.github.com/users/RobbyChapman/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T00:47:42Z","updated_at":"2015-09-11T00:47:42Z","body":"I know this is a little late, but I was hitting this problem today. I am developing a chrome extension that depends on browserify. Chrome throws the following errors when trying to unpack the extension:\r\n\r\nThis extension includes the key file '/app/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/test/test_key.pem'. You probably don't want to do that.\r\nThis extension includes the key file '/app/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/test/test_rsa_privkey.pem'. You probably don't want to do that.\r\nThis extension includes the key file 'app/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/test/test_rsa_pubkey.pem'. You probably don't want to do that.\r\n\r\nI removed the files manually and all was well. However, the next time I run npm install I will hit the same issue. I was thinking maybe adding the test directory to .npmignore would do the trick."}}