MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / SignProject

Function SignProject

OpenKneeboard-Installer/Program.cs:130–148  ·  view source on GitHub ↗
(ManagedProject managedProject, string? s, string? timestampServer1)

Source from the content-addressed store, hash-verified

128}
129
130void SignProject(ManagedProject managedProject, string? s, string? timestampServer1)
131{
132 if (s != null)
133 {
134 managedProject.DigitalSignature = new DigitalSignature
135 {
136 CertificateId = s,
137 CertificateStore = StoreType.sha1Hash,
138 HashAlgorithm = HashAlgorithmType.sha256,
139 Description = managedProject.OutFileName,
140 TimeUrl = (timestampServer1 == null) ? null : new Uri(timestampServer1),
141 };
142 managedProject.SignAllFiles = true;
143 }
144 else
145 {
146 managedProject.OutFileName += "-UNSIGNED";
147 }
148}
149
150void BuildMsi(ManagedProject managedProject, FileInfo? fileInfo)
151{

Callers 1

CreateInstallerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected