From d851c81b8c4acae6e70a15526822050f60d3b6b0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Aug 2024 09:29:28 +0530 Subject: [PATCH] More timestamp servers --- bypy/windows/__main__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bypy/windows/__main__.py b/bypy/windows/__main__.py index 23f551ee0f..d73a27a6bc 100644 --- a/bypy/windows/__main__.py +++ b/bypy/windows/__main__.py @@ -372,12 +372,18 @@ def sign_files(env, files): 'https://calibre-ebook.com', '/f', CODESIGN_CERT, '/p', pw, '/tr'] def runcmd(cmd): - for timeserver in ('http://timestamp.comodoca.com/rfc3161', 'http://timestamp.sectigo.com'): + # See https://gist.github.com/Manouchehri/fd754e402d98430243455713efada710 for list of timestamp servers + for timeserver in ( + 'http://timestamp.acs.microsoft.com/', # this is Microsoft Azure Code Signing + 'http://rfc3161.ai.moda/windows', # this is a load balancer + 'http://timestamp.comodoca.com/rfc3161', + 'http://timestamp.sectigo.com' + ): try: subprocess.check_call(cmd + [timeserver] + list(files)) break except subprocess.CalledProcessError: - print('Signing failed, retrying with different timestamp server') + print(f'Signing failed with timestamp server {timeserver}, retrying with different timestamp server') else: raise SystemExit('Signing failed')