mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
More timestamp servers
This commit is contained in:
parent
5d7fff99e5
commit
d851c81b8c
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user