@@ -115,7 +115,7 @@ await RunProcessAsync(
115115 $ "/p \" { CommandLineEncoder . Utils . EncodeArgText ( certPassword ) } \" ",
116116 $ "/d \" { CommandLineEncoder . Utils . EncodeArgText ( description ) } \" ",
117117 $ "/du \" { CommandLineEncoder . Utils . EncodeArgText ( url ) } \" ",
118- "/tr http://timestamp.digicert.com " ,
118+ $ "/tr { _pathConfig . Timestamper } ",
119119 "/td sha256" ,
120120 "/fd sha256" ,
121121 $ "\" { CommandLineEncoder . Utils . EncodeArgText ( inputFile ) } \" ",
@@ -142,7 +142,7 @@ await RunProcessAsync(
142142 "-command" ,
143143 "\" $Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2;" ,
144144 $ "$Cert.Import('{ CommandLineEncoder . Utils . EncodeArgText ( certFile ) } ','{ CommandLineEncoder . Utils . EncodeArgText ( certPassword ) } ',[System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::DefaultKeySet);",
145- $ "Set-AuthenticodeSignature '{ CommandLineEncoder . Utils . EncodeArgText ( inputFile ) } ' $Cert -Timestamp http://timestamp.digicert.com \" ",
145+ $ "Set-AuthenticodeSignature '{ CommandLineEncoder . Utils . EncodeArgText ( inputFile ) } ' $Cert -Timestamp { _pathConfig . Timestamper } \" ",
146146 }
147147 ) ;
148148
@@ -170,7 +170,7 @@ await RunProcessAsync(
170170 "sign" ,
171171 $ "-CertificatePath \" { CommandLineEncoder . Utils . EncodeArgText ( certFile ) } \" ",
172172 $ "-CertificatePassword \" { CommandLineEncoder . Utils . EncodeArgText ( certPassword ) } \" ",
173- "-Timestamper http://timestamp.digicert.com " ,
173+ $ "-Timestamper { _pathConfig . Timestamper } ",
174174 $ "\" { CommandLineEncoder . Utils . EncodeArgText ( inputFile ) } \" ",
175175 }
176176 ) ;
@@ -184,7 +184,7 @@ await RunProcessAsync(
184184 "sign" ,
185185 $ "-CertificatePath \" { CommandLineEncoder . Utils . EncodeArgText ( certFile ) } \" ",
186186 $ "-CertificatePassword \" { CommandLineEncoder . Utils . EncodeArgText ( certPassword ) } \" ",
187- "-Timestamper http://timestamp.digicert.com " ,
187+ $ "-Timestamper { _pathConfig . Timestamper } ",
188188 $ "\" { CommandLineEncoder . Utils . EncodeArgText ( inputFile ) } \" ",
189189 }
190190 ) ;
@@ -253,7 +253,7 @@ private async Task RunOsslSignCodeAsync(string certFile, string certPasswordFile
253253 var args = new List < string >
254254 {
255255 "sign" ,
256- "-ts http://timestamp.digicert.com " ,
256+ $ "-ts { _pathConfig . Timestamper } ",
257257 $ "-n \" { CommandLineEncoder . Utils . EncodeArgText ( description ) } \" ",
258258 $ "-i \" { CommandLineEncoder . Utils . EncodeArgText ( url ) } \" ",
259259 $ "-pkcs12 \" { CommandLineEncoder . Utils . EncodeArgText ( certFile ) } \" ",
0 commit comments