Ewon Flexy 205 MQTT Connection to AWS not possible (routines:PEM_read_bio:no start) - Printable Version +- Ewon Technical Forum (https://techforum.ewon.biz) +-- Forum: Development (https://techforum.ewon.biz/forum-50.html) +--- Forum: Ewon Embedded Technology (https://techforum.ewon.biz/forum-51.html) +---- Forum: Ewon Data Publishing (https://techforum.ewon.biz/forum-4.html) +---- Thread: Ewon Flexy 205 MQTT Connection to AWS not possible (routines:PEM_read_bio:no start) (/thread-2782.html) |
Ewon Flexy 205 MQTT Connection to AWS not possible (routines:PEM_read_bio:no start) - smehner - 08-08-2025 Hi there, we are using Ewon Flexy 205 (Firmware: 15.0s1) to publish sensor data from the Siemens PLC to AWS IoT Core. A few weeks ago we added a new Flexy 205 with the very same BASIC Script, but we don't get it running. Here is the relevant code BASIC code snippet: Code: @LOG("Initialize MQTT, connecting to Aws IoT broker") That is the logging output: Code: 08/08/2025 12:51:34 MQTT Log (16): Client EWON_04_GB_Kirchberg sending CONNECT It seems obvious that something with the private key file is wrong, but I have no clue what the problem is. I tried several things: - followed the instructions from here: https://techforum.ewon.biz/thread-559-post-2874.html to create the AWS certificates (tested Linux/macOS with Node.js and Python) - uploaded the certs and renamed as seen in the screenshot - did not work (output above) - opened the files with filezilla and copied the certificate text - reason: the private cert size was different (original 1706 Byte if I remember correct) and was not clear text anymore - so I put the clear text and saved it remotely - created the certificates at AWS on the other way (see screenshot) and did the same as above - I tried locally tried the Python connect_device_package -> that worked - I checked the policy and did some modifications so that it worked with my device name and my chosen topics - I did the same again with the new policy (device connection kit for NodeJS / Python / creating certificates the other way) - I copied the certificates from the other Ewons that work correctly -> did not work - same output as above - tested connection -> https://tools.ewonsupport.biz/mqtt/ --> that worked (but it is not encrypted and it is not AWS ;-) ) - I tested the AWS IOT Live Data code example from https://tools.ewonsupport.biz/BASIC_Repository/ -> did not work (same error as above) The current AWS policy is similar to this one: Code: { It would be great if somebody can give me any hint. Best, Stefan |