Skip to content

Commit

Permalink
fix: obtaining a certificate from the store when sha1 is not specifie…
Browse files Browse the repository at this point in the history
…d in the configuration (#4666)
  • Loading branch information
Jasyer committed Mar 3, 2020
1 parent 8b1cebc commit 07693b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/codeSign/windowsCodeSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function getCertificateFromStoreInfo(options: WindowsConfiguration,
const certList = rawResult.length === 0 ? [] : asArray<CertInfo>(JSON.parse(rawResult))
for (const certInfo of certList) {
if ((certificateSubjectName != null && !certInfo.Subject.includes(certificateSubjectName))
|| certInfo.Thumbprint.toUpperCase() !== certificateSha1) {
|| certificateSha1 != null && certInfo.Thumbprint.toUpperCase() !== certificateSha1) {
continue
}

Expand Down

0 comments on commit 07693b3

Please sign in to comment.