Skip to content

chore(nuget-sign): Use osslsigncode for now#92

Merged
RomainMuller merged 2 commits intomasterfrom
rmuller/osslsigncode
Apr 11, 2019
Merged

chore(nuget-sign): Use osslsigncode for now#92
RomainMuller merged 2 commits intomasterfrom
rmuller/osslsigncode

Conversation

@RomainMuller
Copy link
Contributor

We cannot use mono's signcode tool until a release is available that
supports SHA256 signatures, so we'll be using osslsigncode in interim.
A patch has been submitted to mono to add support for SHA256 signatures
should be making it to a release "soon".

Related: mono/mono#11999


A previous iteration of this code was already see in awslabs/cdk-ops@844181b86893436661f75c4be12baf312d03a32a

We cannot use mono's `signcode` tool until a release is available that
supports SHA256 signatures, so we'll be using osslsigncode in interim.
A patch has been submitted to mono to add support for SHA256 signatures
should be making it to a release "soon".

Related: mono/mono#11999
@RomainMuller RomainMuller requested a review from a team as a code owner April 11, 2019 10:00
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

Can you describe how this was tested?

"git merge $BRANCH",
"git remote add origin_ssh git@github.com:awslabs/aws-delivlib-sample.git",
"git push --follow-tags origin_ssh master"
"git describe --exact-match HEAD && { echo \"No new commits.\"; export SKIP=true; } || { echo \"Changes to release.\"; export SKIP=false; }",
Copy link
Contributor

Choose a reason for hiding this comment

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

rebase issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks to me that the expectation is incorrect on the current master.

@RomainMuller
Copy link
Contributor Author

RomainMuller commented Apr 11, 2019

This was tested by running npm test update and ensuring that the signature log outputs looked sane.

@eladb
Copy link
Contributor

eladb commented Apr 11, 2019

Please run the delivlib integration test and make sure publishing with signing actually works.

@RomainMuller
Copy link
Contributor Author

@eladb

$ osslsigncode verify /Users/rmuller/Downloads/eladb.jsiisample.1.5.0.nupkg/lib/netstandard2.0/Eladb.JsiiSample.dll                                                                                             
Current PE checksum   : 000105A7
Calculated PE checksum: 000105A7

Message digest algorithm  : SHA256
Current message digest    : 79AA8FCB5AAD4B4526354EAE3F6C42DDCDA903FA0ADC1594729ADA465BAE0F68
Calculated message digest : 79AA8FCB5AAD4B4526354EAE3F6C42DDCDA903FA0ADC1594729ADA465BAE0F68

Signature verification: ok

Number of signers: 1
	Signer #0:
		Subject: /CN=delivlib-test/C=IL/ST=Ztate/L=Zity/O=Amazon Test/OU=AWS/emailAddress=aws-cdk-dev+delivlib-test@amazon.com
		Issuer : /CN=delivlib-test/C=IL/ST=Ztate/L=Zity/O=Amazon Test/OU=AWS/emailAddress=aws-cdk-dev+delivlib-test@amazon.com

Number of certificates: 3
	Cert #0:
		Subject: /CN=delivlib-test/C=IL/ST=Ztate/L=Zity/O=Amazon Test/OU=AWS/emailAddress=aws-cdk-dev+delivlib-test@amazon.com
		Issuer : /CN=delivlib-test/C=IL/ST=Ztate/L=Zity/O=Amazon Test/OU=AWS/emailAddress=aws-cdk-dev+delivlib-test@amazon.com
	Cert #1:
		Subject: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Assured ID CA-1
		Issuer : /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Assured ID Root CA
	Cert #2:
		Subject: /C=US/O=DigiCert/CN=DigiCert Timestamp Responder
		Issuer : /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Assured ID CA-1

Succeeded

@RomainMuller RomainMuller merged commit e2855af into master Apr 11, 2019
@RomainMuller RomainMuller deleted the rmuller/osslsigncode branch April 11, 2019 11:05
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.

2 participants