Skip to content

Commit

Permalink
WiFiClientSecure fix flipped cert/key in comment (espressif#5065)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deffendor authored Apr 16, 2021
1 parent 01c8cae commit 11f89cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ void setup() {
Serial.println(ssid);

client.setCACert(test_root_ca);
//client.setCertificate(test_client_key); // for client verification
//client.setPrivateKey(test_client_cert); // for client verification
//client.setCertificate(test_client_cert); // for client verification
//client.setPrivateKey(test_client_key); // for client verification

Serial.println("\nStarting connection to server...");
if (!client.connect(server, 443))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ void setup() {
}
}
client.setCACert(test_root_ca);
//client.setCertificate(test_client_key); // for client verification - certificate
//client.setPrivateKey(test_client_cert); // for client verification - private key
//client.setCertificate(test_client_cert); // for client verification - certificate
//client.setPrivateKey(test_client_key); // for client verification - private key
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address set: ");
Expand Down

0 comments on commit 11f89cd

Please sign in to comment.