Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport osslsigncode 2.0 #3258

Merged
merged 2 commits into from
Jan 1, 2020
Merged

Backport osslsigncode 2.0 #3258

merged 2 commits into from
Jan 1, 2020

Conversation

charlesrocket
Copy link

@charlesrocket charlesrocket commented Dec 31, 2019

Better practice since https://sourceforge.net/projects/osslsigncode is dead. This PR backports bitcoin#16669.

The original osslsigncode project (https://sourceforge.net/projects/osslsigncode/) has been marked as abandonware,
"This is now - and has been for a long while - abandonware. Feel free to create your own forks etc.".

However, a fork at https://github.com/mtrojnar/osslsigncode has emerged that has incorporated
theuni's patches, updated the tool to work with OpenSSL 1.1 and made other improvements.

This commit switches the windows signer descriptor to use this new version of osslsigncode.
@UdjinM6
Copy link

UdjinM6 commented Dec 31, 2019

Thanks! Looks good and I agree that dropping dead dependencies before they disappear and switching to the active fork (which is included in official OS distros now bitcoin#16669 (comment)) is potentially a good thing. However this might cause some (trivial?) conflicts for our future backports. Thoughts @nmarley @codablock ?

@codablock
Copy link

I'm fine with the minor merge conflicts in future backports.

@charlesrocket you also have to backport bitcoin#17671 now

@nmarley
Copy link

nmarley commented Dec 31, 2019

I remember some issues building osslsigncode 2.0 on OSX because of the OpenSSL version I think -- will need to dive in again and see if those still exist. I'm fine as long as I'm able to get a version built on OSX which I can sign binaries with (and which the Gitian script can validate).

I guess we could also do it on Linux (e.g. Codablock could sign) so shouldn't be any blocker now that I think of it...

@codablock
Copy link

codablock commented Dec 31, 2019

@nmarley the signing is happening inside Gitian, so it'd be strange if it fails on Mac but succeeds on Linux. It might have been related to Ubuntu inside Gitian being to old, which shouldn't be an issue now as we're on bionic now. I'd suggest merging this and then fixing upcoming build errors if we encounter them (we'll know pretty soon when creating v15 rc2)

@codablock codablock added this to the 15 milestone Dec 31, 2019
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@nmarley
Copy link

nmarley commented Dec 31, 2019

@nmarley the signing is happening inside Gitian

The osslsigncode is used for Windows codesigning, this is what I'm referring to. I'm transferring the bundle to my local Macbook and signing it using a custom compiled osslsigncode binary. Same with OSX codesigning, this is external to Gitian.

https://github.com/dashpay/dash/blob/master/doc/release-process.md#next-steps

@nmarley
Copy link

nmarley commented Dec 31, 2019

I think the the problem with w/the previous version was that it had to link against OpenSSL 1.0 so had special instructions to build. I was able to build this w/no issues and now everything is caught up to OpenSSL 1.1 so there are no more worries about mismatched libssl versions.

Copy link

@nmarley nmarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 merged commit 7f8b8b3 into dashpay:develop Jan 1, 2020
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jan 10, 2020
…3258)

* build: use osslsigncode 2.0 in gitian

The original osslsigncode project (https://sourceforge.net/projects/osslsigncode/) has been marked as abandonware,
"This is now - and has been for a long while - abandonware. Feel free to create your own forks etc.".

However, a fork at https://github.com/mtrojnar/osslsigncode has emerged that has incorporated
theuni's patches, updated the tool to work with OpenSSL 1.1 and made other improvements.

This commit switches the windows signer descriptor to use this new version of osslsigncode.

* Fixed wget call in gitian-build.py

Co-authored-by: Michael <[email protected]>
Co-authored-by: willyk <[email protected]>
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
…3258)

* build: use osslsigncode 2.0 in gitian

The original osslsigncode project (https://sourceforge.net/projects/osslsigncode/) has been marked as abandonware,
"This is now - and has been for a long while - abandonware. Feel free to create your own forks etc.".

However, a fork at https://github.com/mtrojnar/osslsigncode has emerged that has incorporated
theuni's patches, updated the tool to work with OpenSSL 1.1 and made other improvements.

This commit switches the windows signer descriptor to use this new version of osslsigncode.

* Fixed wget call in gitian-build.py

Co-authored-by: Michael <[email protected]>
Co-authored-by: willyk <[email protected]>
xdustinface added a commit to xdustinface/dash that referenced this pull request Dec 21, 2020
We use osslsigncode 2.0 already due to dashpay#3258 so this commit reverts backport of bitcoin#13782 (dashpay@619f7fb)
PastaPastaPasta pushed a commit that referenced this pull request Dec 27, 2020
…-build"

We use osslsigncode 2.0 already due to #3258 so this commit reverts backport of bitcoin#13782 (619f7fb)
CryptoCentric added a commit to absolute-community/absolute that referenced this pull request Jul 3, 2021
…-build"

We use osslsigncode 2.0 already due to dashpay#3258 so this commit reverts backport of bitcoin#13782 (619f7fb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants