1 write to Certificate
Microsoft.DotNet.SignTool (1)
src\SignInfo.cs (1)
60Certificate = certificate;
21 references to Certificate
Microsoft.DotNet.SignTool (21)
src\BatchSignUtil.cs (6)
478bool isVsixCert = (!string.IsNullOrEmpty(fileName.SignInfo.Certificate) && IsVsixCertificate(fileName.SignInfo.Certificate)) || 481bool isInvalidEmptyCertificate = fileName.SignInfo.Certificate == null && !fileName.HasSignableParts && !fileName.SignInfo.IsAlreadySigned; 508if (!IsLinuxSignCertificate(fileName.SignInfo.Certificate)) 551if (fileName.SignInfo.Certificate != null) 553log.LogError($"Zip {fileName} should not be signed with this certificate: {fileName.SignInfo.Certificate}");
src\Configuration.cs (6)
422signInfo = new SignInfo(pktBasedSignInfo.Certificate, collisionPriorityId: _hashToCollisionIdMap[signedFileContentKey]); 518if (signInfo.Certificate != null && _additionalCertificateInformation.TryGetValue(signInfo.Certificate, out var additionalInfo)) 548bool isMicrosoftCertificate = !IsThirdPartyCertificate(signInfo.Certificate); 556warning = $"Signing Microsoft library '{file.FullPath}' with 3rd party certificate '{signInfo.Certificate}'. The library is considered Microsoft library due to its copyright: '{peInfo.Copyright}'."; 561warning = $"Signing 3rd party library '{file.FullPath}' with Microsoft certificate '{signInfo.Certificate}'. The library is considered 3rd party library due to its copyright: '{peInfo.Copyright}'.";
src\FileSignInfo.cs (1)
141(SignInfo.ShouldSign ? $" Certificate='{SignInfo.Certificate}'" : "") +
src\SignInfo.cs (6)
81=> new SignInfo(Certificate, StrongName, value, collisionPriorityId, ShouldIgnore, IsAlreadySigned, IsAlreadyStrongNamed); 84=> new SignInfo(Certificate, StrongName, Notarization, collisionPriorityId, ShouldIgnore, IsAlreadySigned, IsAlreadyStrongNamed); 87=> Certificate != null ? 88new SignInfo(Certificate, StrongName, Notarization, CollisionPriorityId, value, value, IsAlreadyStrongNamed) : 89new SignInfo(Certificate, StrongName, Notarization, CollisionPriorityId, true, value, IsAlreadyStrongNamed); 92new SignInfo(Certificate, StrongName, Notarization, CollisionPriorityId, ShouldIgnore, IsAlreadySigned, value);
src\SignTool.cs (2)
65var osxFilesToZip = filesToSign.Where(fsi => SignToolConstants.MacSigningOperationsRequiringZipping.Contains(fsi.SignInfo.Certificate) || 189AppendLine(builder, depth: 3, text: $@"<Authenticode>{(notarize ? fileToSign.SignInfo.Notarization : fileToSign.SignInfo.Certificate)}</Authenticode>");