Failed to dump certificates to file system #5

Open
opened 2019-10-07 16:27:33 +00:00 by Ghost · 0 comments

Hi,

To give some context, I am using this library to enable an electron app to use a 3rd party API which doesn't seem to have their credential store properly configured. In short, the error I get ( Windows only ) is this:

Uncaught Error: ENOENT, node_modules\ssl-root-cas\pems\netlock-arany-class-gold-főtanúsítvány.pem not found in localpath\app-3.1.1-beta\resources\app.asar
at notFoundError (ELECTRON_ASAR.js:114:19)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:182:9)
at Object.fs.writeFileSync (fs.js:1311:33)
at localpath\resources\app.asar\node_modules\ssl-root-cas\ca-store-generator.js:145:8
at Array.forEach ()
at dumpCerts (localpath\resources\app.asar\node_modules\ssl-root-cas\ca-store-generator.js:130:9)
at localpath\resources\app.asar\node_modules\ssl-root-cas\ca-store-generator.js:222:7
at IncomingMessage. (localpath\resources\app.asar\node_modules@coolaj86\urequest\index.js:154:9)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)

After decompressing the *.asar file, I could locate the 'netlock-arany-class-gold-főtanúsítvány.pem' under /node_modules/ssl-root-cas/pems. For some reason, the node runtime of electron doesn't seem to be catching that and as a result, throws that error. Any ideas ?

Hi, To give some context, I am using this library to enable an electron app to use a 3rd party API which doesn't seem to have their credential store properly configured. In short, the error I get ( Windows only ) is this: Uncaught Error: ENOENT, node_modules\ssl-root-cas\pems\netlock-arany-class-gold-főtanúsítvány.pem not found in localpath\app-3.1.1-beta\resources\app.asar at notFoundError (ELECTRON_ASAR.js:114:19) at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:182:9) at Object.fs.writeFileSync (fs.js:1311:33) at localpath\resources\app.asar\node_modules\ssl-root-cas\ca-store-generator.js:145:8 at Array.forEach (<anonymous>) at dumpCerts (localpath\resources\app.asar\node_modules\ssl-root-cas\ca-store-generator.js:130:9) at localpath\resources\app.asar\node_modules\ssl-root-cas\ca-store-generator.js:222:7 at IncomingMessage.<anonymous> (localpath\resources\app.asar\node_modules\@coolaj86\urequest\index.js:154:9) at emitNone (events.js:110:20) at IncomingMessage.emit (events.js:207:7) After decompressing the *.asar file, I could locate the 'netlock-arany-class-gold-főtanúsítvány.pem' under /node_modules/ssl-root-cas/pems. For some reason, the node runtime of electron doesn't seem to be catching that and as a result, throws that error. Any ideas ?
Ghost changed title from Failed to dump certificates from mozilla site. to Failed to dump certificates to file system 2019-10-07 16:27:48 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/ssl-root-cas.js#5
No description provided.