Skip to content

Commit

Permalink
Update fingerprints for Basic_Ssl and HttpClient samples
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Oct 23, 2020
1 parent bae87d3 commit 7d1f68d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions samples/Basic_Ssl/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ void grcSslInit(Ssl::Session& session, HttpRequest& request)

// Use the Gibson Research fingerprints web page as an example. Unlike Google, these fingerprints change very infrequently.
static const Ssl::Fingerprint::Cert::Sha1 sha1Fingerprint PROGMEM = {
0xFC, 0x22, 0xB6, 0x86, 0x22, 0x3F, 0x77, 0xE5, 0xBA, 0xC9,
0xB1, 0x33, 0x3D, 0x1F, 0xE8, 0x2E, 0x82, 0xFC, 0x81, 0xE8,
0x7A, 0x85, 0x1C, 0xF0, 0xF6, 0x9F, 0xD0, 0xCC, 0xEA, 0xEA,
0x9A, 0x88, 0x01, 0x96, 0xBF, 0x79, 0x8C, 0xE1, 0xA8, 0x33,
};

static const Ssl::Fingerprint::Cert::Sha256 certSha256Fingerprint PROGMEM = {
0xB4, 0xDA, 0xB6, 0xAA, 0x81, 0x0F, 0x93, 0x06, 0xCF, 0x8F, 0xD9, 0xE8, 0x1E, 0xCF, 0x08, 0xBE,
0x83, 0x26, 0xD6, 0x76, 0xFD, 0xF6, 0x21, 0x8A, 0x04, 0xAC, 0x2D, 0x9E, 0xC6, 0x40, 0x53, 0x05,
0xEC, 0xB2, 0x21, 0x7E, 0x43, 0xCC, 0x83, 0xE5, 0x5B, 0x35, 0x7F, 0x1A, 0xC2, 0x06, 0xE8, 0xBF,
0xB1, 0x5F, 0x5B, 0xC8, 0x13, 0x9F, 0x93, 0x37, 0x3C, 0xF4, 0x8E, 0x82, 0xEC, 0x81, 0x28, 0xDF,
};

static const Ssl::Fingerprint::Pki::Sha256 publicKeyFingerprint PROGMEM = {
Expand Down
12 changes: 6 additions & 6 deletions samples/HttpClient/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ void sslRequestInit(Ssl::Session& session, HttpRequest& request)
session.options.verifyLater = true;

// These are the fingerprints for httpbin.org
static const Ssl::Fingerprint::Cert::Sha1 sha1Fingerprint PROGMEM = {
0x2B, 0xF0, 0x48, 0x9D, 0x78, 0xB4, 0xDE, 0xE9, 0x69, 0xE2,
0x73, 0xE0, 0x14, 0xD0, 0xDC, 0xCC, 0xA8, 0xD8, 0x3B, 0x40,
static const Ssl::Fingerprint::Cert::Sha1 sha1Fingerprint PROGMEM{
0xBF, 0x5C, 0x1E, 0x24, 0xA1, 0xB7, 0x73, 0xCF, 0xE6, 0xBF,
0xBC, 0xF5, 0x8A, 0x58, 0xF3, 0xC2, 0xE4, 0xB6, 0x98, 0xE1,
};

static const Ssl::Fingerprint::Pki::Sha256 publicKeyFingerprint PROGMEM = {
0xE3, 0x88, 0xC4, 0x0A, 0x2A, 0x99, 0x8F, 0xA4, 0x8C, 0x38, 0x4E, 0xE7, 0xCB, 0x4F, 0x8B, 0x99,
0x19, 0x48, 0x63, 0x9A, 0x2E, 0xD6, 0x05, 0x7D, 0xB1, 0xD3, 0x56, 0x6C, 0xC0, 0x7E, 0x74, 0x1A,
static const Ssl::Fingerprint::Pki::Sha256 publicKeyFingerprint PROGMEM{
0x83, 0x7E, 0x88, 0xA9, 0x13, 0x02, 0xDC, 0xA9, 0x44, 0xEE, 0xEC, 0x3A, 0x92, 0xC3, 0x94, 0x3A,
0x01, 0x0B, 0x98, 0x97, 0x26, 0xE3, 0xB0, 0xC3, 0xC1, 0xA0, 0x5C, 0x7B, 0x60, 0xB7, 0x47, 0xDB,
};

// Trust only a certificate in which the public key matches the SHA256 fingerprint...
Expand Down

0 comments on commit 7d1f68d

Please sign in to comment.