Skip to content

Commit 9de14b5

Browse files
committed
Compare certificates signatures insted of authority key identifier
1 parent d31be30 commit 9de14b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoIoTCloudTCP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ int ArduinoIoTCloudTCP::updateCertificate(String authorityKeyIdentifier, String
609609
return 0;
610610
}
611611
/* check if we need to update 0 = equal <0 = error skip rebuild */
612-
if(SElementArduinoCloudCertificate::isAuthorityKeyIdDifferent(_cert, authorityKeyIdentifier) <= 0) {
612+
if(SElementArduinoCloudCertificate::signatureCompare(_cert.signatureBytes(), signature) <= 0) {
613613
DEBUG_INFO("ArduinoIoTCloudTCP::%s request skipped.", __FUNCTION__);
614614
return 0;
615615
}

0 commit comments

Comments
 (0)