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