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:
- Created 5 years ago
- Reactions:6
- Comments:14 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
@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 setpublisherName
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 of20.35.0
and one dependency of our app is not compatible with the electron 3 yetYou always answer very fast, when do you sleep? 😃