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

(#147) Update Authenticode signing certificate subject name and allow setting it via an environment variable #148

Conversation

Windos
Copy link
Member

@Windos Windos commented May 10, 2024

Description Of Changes

This PR updates the default subject name for the Authenticode signing certificate from Chocolatey Software, Inc. to Chocolatey Software, Inc and also enables overriding this subject name via an environment variable.

Motivation and Context

During the renewal of the Authenticode signing certificate, the subject name changed slightly, and so signing fails due to not being able to find the matching certificate.

This change necessitates updating the version of this recipe used in projects, to avoid this situation in the future the option of providing an environment variable was introduced.

Testing

I'm not 100% sure on how to best test this

Operating Systems Testing

N/A

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue

Fixes #147

@Windos Windos requested a review from gep13 May 10, 2024 00:18
This updates the default Authenticode subject name to match what it
changed to during the recent renewal process. It also enables setting
this same name via an Environment Variable so that no changes are needed
urgently if it changes again in the future.
@Windos Windos force-pushed the GH-147/update-authenticode-signing-subject-name branch from b1dd31f to 32aa0d0 Compare May 10, 2024 09:16
Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@gep13 gep13 merged commit 043be76 into chocolatey:develop May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants