Skip to content

Commit b8cac0d

Browse files
committed
Sign with SHA256 instead of SHA1 #54
1 parent 24edcc7 commit b8cac0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build/build-framework.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ let provideNuGetExtraFiles path (bundle:Bundle) (pack:Package) =
191191
let sign fingerprint timeserver files =
192192
files
193193
|> Seq.map (sprintf "\"%s\"")
194-
|> Seq.map (fun file -> sprintf """sign /v /sha1 "%s" /t "%s" %s""" fingerprint timeserver file)
194+
|> Seq.map (fun file -> sprintf """sign /v /fd sha256 /sha1 "%s" /tr "%s" /td sha256 %s""" fingerprint timeserver file)
195195
|> Seq.iter (fun arguments ->
196196
let result =
197197
ExecProcess (fun info ->
198-
info.FileName <- """C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe"""
198+
info.FileName <- findToolInSubPath "signtool.exe" """C:\Program Files (x86)\Windows Kits\10\bin\x64"""
199199
info.Arguments <- arguments) TimeSpan.MaxValue
200200
if result <> 0 then
201201
failwithf "Error during SignTool call ")

0 commit comments

Comments
 (0)