Skip to content

Commit

Permalink
updated cert chain script, removed use of deprecated feature
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarzen committed May 9, 2024
1 parent e41f6fa commit deb97e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cert/cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,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:

Expand Down
14 changes: 7 additions & 7 deletions platformio/include/cert.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// this file is autogenerated - any modification will be overwritten
// unused symbols will not be linked in the final binary
// generated on 2023-12-17 00:18:32
// generated on 2024-05-08 22:04:27
// by 'cert.py -s api.openweathermap.org -p 443 -n openweathermap'

// alternatively, the certificate chain can be extracted using openssl
Expand All @@ -13,8 +13,8 @@
// certificate chain for api.openweathermap.org:443

// CN: *.openweathermap.org => name: __openweathermap_org
// not valid before: 2023-06-30 00:00:00
// not valid after: 2024-07-30 23:59:59
// not valid before: 2023-06-30 00:00:00+00:00
// not valid after: 2024-07-30 23:59:59+00:00
const char fingerprint___openweathermap_org[] PROGMEM = "a6:2a:18:c6:c9:81:08:64:ba:69:73:ef:44:1e:0a:a3:fe:fa:a5:4d";
const char pubkey___openweathermap_org[] PROGMEM = R"PUBKEY(
-----BEGIN PUBLIC KEY-----
Expand All @@ -30,8 +30,8 @@ TQIDAQAB

// http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt
// CN: Sectigo RSA Domain Validation Secure Server CA => name: Sectigo_RSA_Domain_Validation_Secure_Server_CA
// not valid before: 2018-11-02 00:00:00
// not valid after: 2030-12-31 23:59:59
// not valid before: 2018-11-02 00:00:00+00:00
// not valid after: 2030-12-31 23:59:59+00:00
const char cert_Sectigo_RSA_Domain_Validation_Secure_Server_CA[] PROGMEM = R"CERT(
-----BEGIN CERTIFICATE-----
MIIGEzCCA/ugAwIBAgIQfVtRJrR2uhHbdBYLvFMNpzANBgkqhkiG9w0BAQwFADCB
Expand Down Expand Up @@ -72,8 +72,8 @@ yOGBQMkKW+ESPMFgKuOXwIlCypTPRpgSabuY0MLTDXJLR27lk8QyKGOHQ+SwMj4K

// http://crt.usertrust.com/USERTrustRSAAddTrustCA.crt
// CN: USERTrust RSA Certification Authority => name: USERTrust_RSA_Certification_Authority
// not valid before: 2019-03-12 00:00:00
// not valid after: 2028-12-31 23:59:59
// not valid before: 2019-03-12 00:00:00+00:00
// not valid after: 2028-12-31 23:59:59+00:00
const char cert_USERTrust_RSA_Certification_Authority[] PROGMEM = R"CERT(
-----BEGIN CERTIFICATE-----
MIIFgTCCBGmgAwIBAgIQOXJEOvkit1HX02wQ3TE1lTANBgkqhkiG9w0BAQwFADB7
Expand Down

0 comments on commit deb97e9

Please sign in to comment.