diff --git a/signer/config.json b/signer/config.json index b55ff6e42..1a3186b39 100644 --- a/signer/config.json +++ b/signer/config.json @@ -25,6 +25,5 @@ ["0x534c", "0x0001", "Trezor"], ["0x1209", "0x53c0", "Trezor2 Bootloader"], ["0x1209", "0x53c1", "Trezor2"] - ], - "valid_days": 180 + ] } diff --git a/signer/sign.py b/signer/sign.py index 346370e34..31bf26e6d 100755 --- a/signer/sign.py +++ b/signer/sign.py @@ -40,7 +40,7 @@ def compose_message(json, proto): import config_pb2 cfg = config_pb2.Configuration() - cfg.valid_until = int(time.time()) + json['valid_days'] * 3600 * 24 + cfg.valid_until = 2147483647 # maxint cfg.wire_protocol.MergeFrom(proto) for url in json['whitelist_urls']: