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.

Provider.ts in electron-update does not support SHA2 hashes

See original GitHub issue
  • electron-builder version: 20.22.0
  • electron-updater version: 2.23.2
  • Target: Windows and Mac OS X

We use a custom generic update server for delivering app updates and the installation files. Our system only stores the SHA256 code. When delivering our latest.yml / latest-mac.yml files the electron updater throws this error: https://github.com/electron-userland/electron-builder/blob/d5536297dcb9ff4e306ed04b9f354fccbb490eee/packages/electron-updater/src/providers/Provider.ts#L113

The issue is caused above: https://github.com/electron-userland/electron-builder/blob/d5536297dcb9ff4e306ed04b9f354fccbb490eee/packages/electron-updater/src/providers/Provider.ts#L99 where our SHA256 gets dropped.

Is this intentional (and support of SHA256 hashes will be dropped permanently)? Can we add a line:

sha2: updateInfo.sha2,

after line 99?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Jul 23, 2018

Why not simply use latest.yml generated by electron-builder?

1reaction
develarcommented, Jul 20, 2018

You can expect fix this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2019 SHA-2 Code Signing Support requirement for ...
Summary. To help protect the security of the Windows operating system, updates were previously signed (using both the SHA-1 and SHA-2 hash algorithms)....
Read more >
OPAG Error: The '[Certificate Name]' does not support SHA256 ...
When this certificate is selected in the OPAG tool, the error message "The certificate does not support sha256 hash algorithm" is triggered.
Read more >
Automated Malware Analysis Report for Personlig Sentralbord ...
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF.MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND.NONINFRINGEMENT. IN NO EVENT SHALL ...
Read more >
SHA256 Hashing Support for setCustomerIDs
Along with the Experience Cloud visitor ID, you can associate additional customer IDs, authentication status and hash type (SHA-256) with each ...
Read more >
SHA-256 Compatibility
SHA-2 is a set of cryptographic hash functions which includes SHA-224, SHA-256, ... Not all software supports every digest size within the SHA-2...
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