Hello,
I am currently working with the Nordic nRF9160DK and am using the https_client example from the GitHub repository, and as far as I know it is the latest release (last updated November 21st 2021). I have already successfully established a connection with example.com and was able to send/receive data. However, I am having some issues when attempting to change the certificate. I am attempting to connect to dweet.io, and when running the demo, I receive an output which says "Certificate mismatch" and "err: 111" (see image below):
I made the following changes to the source code based on what seemed like it had needed changing and based on previous DevZone posts I have seen with similar issues.
Changed Host name in HTTPS_HEAD:
Added the .crt file (filename dweetio.crt) in the /cert directory, as well as added "...\n" \ based on a previous post:
Updated the hex file generator in CMakeLists.txt:
Changed HTTPS_HOSTNAME in kconfig:
Added an extra err check in tls_setup (based on a different DevZone post):
Any help in resolving this issue would be greatly appreciated.