question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot sign windows app since 20.33.0

See original GitHub issue
  • Version: electron-builder@20.33.0->20.34.0 electron-updater@3.2.1->3.2.3
  • Target: Windows x86 and x64

Builds worked fine on previous versions. WIN_CSC_LINK and CSC_KEY_PASSWORD are set. Signing on mac works fine.

The error I get while signing:

Cannot extract publisher name from code signing certificate: pkcs12: error reading P12 data: asn1: syntax error: indefinite length found (not DER)

It seems that it has something to do with the recent rewrite: “Another part of electron-builder was rewritten in Go — as result, to get publisher name from code signing certificate, openssl is not required anymore on macOS/Linux”

Thank you!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
ryanbadgercommented, Jan 30, 2020

OK I managed to get this to work, my scenario was my cert had expired and I bought a new one, for some reason this caused issues?

It seems to be fixed by setting publisherName in package.json under the win property:

"win": { "publisherName": "Click Here Digital Ltd", "target": [ { "target": "nsis", "arch": [ "x64", "ia32" ] } ] },

The publisherName MUST match the common name set in your code signing cert i believe. it seems this is required actually and should have been there before. @DalderupMaurice do you want to try adding this if you haven’t already got it and see if it helps?

2reactions
ert78gbcommented, Nov 15, 2018

@develar Sry for the not well-described error.

I had the Cannot extract publisher name from code signing certificate: pkcs12: error reading P12 data: asn1: syntax error: indefinite length found (not DER) error. Now I try to use set publisherName in the build setup. Now I am waiting for the CI to finish the job.

I can not update the electron builder to 20.36.1. because requires Electron 3. in the changelog of 20.35.0 and one dependency of our app is not compatible with the electron 3 yet

You always answer very fast, when do you sleep? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows error message: "We can't sign in to your account"
If you try to sign in to Windows 11 and receive the error message, "We can't sign in to your account" or you...
Read more >
Cannot sign into Windows account in Windows related apps ...
I've been having this issue since I got back from a vacation on May 28th. ... Cannot sign into Windows account in Windows...
Read more >
Troubleshoot problems signing in to Windows
Here are some things you can try if you're having trouble signing in to a Windows 11 device, including problems signing in after...
Read more >
To Do doesn't show login window after pressing Sign In
You can find the detailed steps in Method 3. Click on the Windows icon in your taskbar to bring up the Start menu....
Read more >
Connection issues in sign-in after update to Office 2016 build ...
By default, Microsoft Microsoft 365 Apps for enterprise (2016 version) uses Azure Active Directory Authentication Library (ADAL) framework-based ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found