Comments (4)
Not sure, but possibly an issue with SNI? Try using the setInsecure API to see if it solves your problem, then fix the underlying SNI issue.
from arduinobearssl.
Hi @ffontaine, you need to create your own TAs starting from the mosquitto.org certificate using the brssl
tool and use the extended begin constructor to initialize the BearSSL
object. Take a look at [ArduinoBearSSL - adding root certificates](https://forum.arduino.cc/t/arduinobearssl-adding-root-certificates/610184/2).
from arduinobearssl.
For future reference:
The full command is something like:
brssl ta my_tas_and_certs.pem > MyTAs.h
Then, add MyTAs.h
file to the sketch folder/project and use the TAs
array in the constructor of the BearSSLClient
object:
#include "MyTAs.h"
WiFiClient client;
BearSSLClient sslClient(client, TAs, TAs_NUM);
from arduinobearssl.
Same experience. I used ESP32S3 and SIM7670G and Azure iot hub. Bearssl works fine with port 443 towards to vsh.pp.ua:443 but when I tried to azure dps mqtts server with 8883 port, it does not work. returning -2 error(server connection error). It should work because Azure server is using Digicert Root G2 so there shouldn't be an issue. Therefore, I tried different SSL support from TinyGSM with SIMCOM A767X and it also has Digicert Root G2 and it works perfect. It seems ArduinoBearSSL mqtts support is not working over GSM client
from arduinobearssl.
Related Issues (20)
- New release? HOT 1
- Making ArduinoECCX08 optional ? HOT 3
- Works with 1.5.0, not with 1.6.0 HOT 4
- How to shrink the library to a minimal IoT version HOT 1
- Upgrade to latest GitHub Action based CI
- Handshake SSL certificate HOT 1
- Handshake SSL Certificate
- undefined reference to `_gettimeofday' when compiling on a Teensy4.0 HOT 8
- Support for ATECC608A-TNGTLS thumbprint certificate HOT 3
- Missing data at the end of a read HOT 1
- Add GitHub Actions workflow to synchronise with shared repository labels
- ArduinoBearSsl without eec HOT 2
- failed to send a long data ( > 512bytes ) HOT 3
- No Documentation or Forum Support for libary HOT 1
- A bad connection causes an inifinite loop (at least on an ESP32 but I think also on an Arduino) HOT 2
- Error "SHA1Class SHA1" on an ESP32 when including HTTPClient.h
- AES128 runEnc() cause RP2040 to hard lock
- Possible error in BEAR_SSL_CLIENT_IBUF_SIZE calculation HOT 1
- `ArduinoBearSSLConfig.h` in sketch folders not accessible to library HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinobearssl.