-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protocol: renew device certificate if it is not valid
The device certificate was obtained only once, during the first connection. However, certificates may change over time (e.g. by substituting an expired one with a valid one). Obtain a new certificate if the old one is not valid anymore. As paho mqtt client does not expose TLS errors upon reconnection, a custom open connection function was added. Signed-off-by: Arnaldo Cesco <[email protected]>
- Loading branch information
Showing
2 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters