Comments (11)
@joscha mentioned he regenerated a new pem key. If you do that, does it work?
PS: your key.pem should not be located in the same folder as your manifest, it should be in the parent folder.
from crx.
It resolved by regenerate a pem key, Thanks!
from crx.
@okuryu thanks for the feedback. I wonder what difference between openssl and node-rsa causes that issue though.
from crx.
@oncletom @joscha BTW, it seems to changed the extension's ID by regenerating a private pem key. Is there a way to maintains the extension's ID and pem key with using crx module?
from crx.
I'm actually having an issue using the crx CLI... I get exceptions from other modules it would seem... Here is my structure:
chrome
/ css
/ html
/ image
/ js
/ libs
manifest.json
$ crx pack
path.js:313
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at exports.resolve (path.js:313:15)
at Command.pack (/usr/local/lib/node_modules/crx/bin/crx.js:60:15)
at Command.listener (/usr/local/lib/node_modules/crx/node_modules/commander/index.js:286:8)
at Command.emit (events.js:98:17)
at Command.parseArgs (/usr/local/lib/node_modules/crx/node_modules/commander/index.js:528:12)
at Command.parse (/usr/local/lib/node_modules/crx/node_modules/commander/index.js:414:21)
at Object. (/usr/local/lib/node_modules/crx/bin/crx.js:35:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
Any quick thoughts? I'd like the app to build my key for me as well.
from crx.
It may be that the pem key was originally generated using the Chrome browser and used the pkcs8
header format and when you regenerated the pem key using the crx
CLI, you generated it with the pkcs1
format. Please see pull request #32 which fixes this problem.
from crx.
I haven't actually generated a key yet, so key.pem doesn't exist anywhere.
from crx.
try crx pack .
. The CLI misses a default for the path.
from crx.
Tried that, it crashes trying to read key.pem since it doesn't exist yet.
from crx.
Alright, I see what's going on here... There are a couple assumptions that the CLI is making which is causing the crashes. I'm going to fork, fix, and submit a pull request.
Thanks for your help!
from crx.
Thank you @lepoltj and sorry for this annoying situation!
from crx.
Related Issues (20)
- Do not write PEM inside extension's directory
- CRX3 inconsistent extension URL HOT 3
- Chrome 75.x: Package is invalid: 'CRX_REQUIRED_PROOF_MISSING' HOT 14
- Upgrade vulnerable lodash (again) HOT 1
- cli: crx command not found HOT 2
- how solveing to Callback must be a function ? HOT 3
- I have a problem. The generated file is incomplete HOT 2
- Why are the hash of crx files different using the same private key HOT 1
- use crx pack failed HOT 1
- Is there any plan to support rollup plugins ? HOT 1
- Reduce CRX size by setting zlib compression level HOT 1
- Some extensions need to include .crx files HOT 1
- Pack an extension without .pem key. HOT 1
- Calculate ID from path HOT 4
- Incorrect id calculation based on path HOT 10
- TypeScript HOT 4
- API for public PKCS PEM string HOT 7
- Lodash Security Vulnerability HOT 2
- Packed & signed .crx does not work in Chrome HOT 29
- Allow supplying our own `fs` HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crx.