mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Update certs.h (#9182)
* Update certs.h not_valid_{after,before} -> not_valid_{after,before}_utc https://cryptography.io/en/latest/x509/reference/#cryptography.x509.Certificate.not_valid_before > This property is deprecated and will be removed in a future version. Please switch to the timezone-aware variant not_valid_before_utc(). * fixup! Update certs.h
This commit is contained in:
@ -41,8 +41,8 @@ def printData(data, showPub = True):
|
||||
name = re.sub('[^a-zA-Z0-9_]', '_', cn)
|
||||
print('// CN: {} => name: {}'.format(cn, name))
|
||||
|
||||
print('// not valid before:', xcert.not_valid_before)
|
||||
print('// not valid after: ', xcert.not_valid_after)
|
||||
print('// not valid before:', xcert.not_valid_before_utc)
|
||||
print('// not valid after: ', xcert.not_valid_after_utc)
|
||||
|
||||
if showPub:
|
||||
|
||||
@ -114,7 +114,7 @@ def main():
|
||||
print()
|
||||
print('// this file is autogenerated - any modification will be overwritten')
|
||||
print('// unused symbols will not be linked in the final binary')
|
||||
print('// generated on {}'.format(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
|
||||
print('// generated on {}'.format(datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d %H:%M:%S")))
|
||||
print('// by {}'.format(sys.argv))
|
||||
print()
|
||||
print('#pragma once')
|
||||
|
Reference in New Issue
Block a user