Closed fridgerator closed 5 years ago
I have also tried with the symantec server http://sha256timestamp.ws.symantec.com/sha256/timestamp
with the same result
@pronebird I will disable dll code signing until check "is already signed" not implemented. For now option win.signDlls
will be added for you if you want to enable this feature.
@develar great, thanks for pinging me.
If there is a certain rate limit on the server, we could parse the response from the server and add a sleep interval once the rate limit is reached, then retry after.
Not sure how much it would complicate the code but it seems reasonable to retry on failure because any network issues may naturally occur while code signing, and given that we have projects that take like 10 minutes to sign everything, I think it makes sense to improve the networking reliability.
Alternatively use a non-rate limited server or a server with a higher rate limit from your CA.
I was encountering the same error with the default (comodo) timestamping server.
I switched to http://tsa.startssl.com/rfc3161
and this one seems to work fine for now.
I found it here: https://gist.github.com/Manouchehri/fd754e402d98430243455713efada710
@aluxian, how did you switch the timestamp server? (I checked the config options but didn't find anything related, sorry if I missed it)
rfc3161TimeStampServer
, here's my config:
"win": {
"icon": "build/icon.ico",
"target": [
{
"target": "nsis-web",
"arch": [
"x64",
"ia32"
]
}
],
"rfc3161TimeStampServer": "http://tsa.startssl.com/rfc3161",
"publisherName": "xxx",
"verifyUpdateCodeSignature": false,
"signDlls": true
},
In 21 should be better.
In 20.19.1, one of the bug fixes is "sign all exe and dll files, not only root (37bb121)".
If the application contains a lot of dll and exe files, then I think signing of the files is getting rate limited or something because the first ~17 or so files sign correctly but after that I get an exception:
SignTool Error: The specified timestamp server either could not be reached or returned an invalid response
Reverting back to an older version of electron-builder (19.55.3) where only a few files are signed and my application builds successfully again.
Output log: