Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:07 23 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Webmite & TLS

Author Message
stef123
Newbie

Joined: 25/09/2024
Location: United Kingdom
Posts: 23
Posted: 06:54pm 30 Sep 2024
Copy link to clipboard 
Print this post

Hi all,

first of all - thanks again to Geoff and Peter for this extraordinary piece of Software !

Since i´m in need to regulary send out (at least once per Day) some logged Data from my Webmite-Project (running on the 2040), it would be quite nice if i would have the option to send them out via Email. MQTT currently isn´t an option for me and i would like to use my own Mail Provider, which only allows SSL or TLS.

Some Communication in my Project already uses UDP for controlling the device and get its Status back, but that is barely in use and i want to avoid flushing the logged data once per day manually.

Now i have read the TLS was stripped (or never being implemented) on the Webmite because of its RAM consumption. If it was stripped on the newer Versions, may i kindly ask which Version was the last one which supported TLS - or is it implemented in the sources, then which switch should be used for Compiling?

Is it likely that the RP2350-Version has TLS implemented because of the 2350s fairly large RAM Size?

Kind regards
Stef
Edited 2024-10-01 04:55 by stef123
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 357
Posted: 07:00pm 30 Sep 2024
Copy link to clipboard 
Print this post

Please see:
Geoffs mailer

I have not personally tested the email option.

Pluto
 
stef123
Newbie

Joined: 25/09/2024
Location: United Kingdom
Posts: 23
Posted: 07:16pm 30 Sep 2024
Copy link to clipboard 
Print this post

Thank you for your response!

Yes, i´ve already implemented it that way, but my SMTP-Provider doesn´t provide Port 2525, so i have to go for Port 587 and the Server complains with "530 Must issue a STARTTLS command first" and lots of "Syntax errors" for the following commands. So it seems to me that TLS isn´t implemented (yet, or it was in earlier Versions).

So i think that SMTP2Go being used in the Wabmite-Manual-Example and some others do not need TLS for communication, but i´d like to avoid using an additional and message-limited Provider.

My Project still has plenty of RAM available, so if TLS would consume additional 35 KB of RAM (so it was said), i would be still happy with it.
Edited 2024-10-01 05:18 by stef123
 
stef123
Newbie

Joined: 25/09/2024
Location: United Kingdom
Posts: 23
Posted: 07:53pm 30 Sep 2024
Copy link to clipboard 
Print this post

Ok, i´m crawling through the Cmake-sources and try to make adjustments for TLS.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9100
Posted: 09:43pm 30 Sep 2024
Copy link to clipboard 
Print this post

I had TLS working but it only supported a subset of protocols and used huge amount of resource. SSL over TLS appears to be way out of scope of the Pico. There is no RP2350 with web I/F and sdk support
Edited 2024-10-01 07:44 by matherp
 
stef123
Newbie

Joined: 25/09/2024
Location: United Kingdom
Posts: 23
Posted: 01:31am 01 Oct 2024
Copy link to clipboard 
Print this post

So while being currently on my Linux environment and successfully compiled Webmite, i am at the Point where mmtls.c/h is missing from the sources. Any chance to get it from somewhere?
 
stef123
Newbie

Joined: 25/09/2024
Location: United Kingdom
Posts: 23
Posted: 02:39am 04 Oct 2024
Copy link to clipboard 
Print this post

I choosed to go another Way by installing an Local Mail Server (hMailServer) with no TLS/SSL-Encryption and created in Thunderbird a Localhost Mail Account - works quite well, altrough HMailServer should be able to forward messages to an external account, but my Mail provider doesn´t seem to allow this by throwing "Access denied"-Messages on each available Smtp-Port - for whatever reason.

The Webmite actually tries to deliver messages each ten minutes (if any) and if the connection fails (eg. Local PC off), it retries again after 10 Minutes, unless the Server responds with "250 Queued", because all messages get queued by hMailServer before being sent out.  

I think this is an usable solution.
Edited 2024-10-04 12:41 by stef123
 
stef123
Newbie

Joined: 25/09/2024
Location: United Kingdom
Posts: 23
Posted: 04:43am 04 Oct 2024
Copy link to clipboard 
Print this post

Well, sort of - i cannot form a body$ long enough to be able to insert an attachment, which i need to send out.

So the way to go could be going for a Longstring instead of body$, but "WEB TCP CLIENT REQUEST" complains about "dimensions" when trying to send an array()% instead of body$ - and sending out multiple requests doesn´t seem to be possible, because the body needs to end with "." in order to get an reply, which REQUEST is waiting for, but the server doesn´t send out.

The Server ACKs after "DATA" with "354, OK,send", but the next REQUEST which holds data to be sent out waits for an ACK, but doesn´t get it, because the server is still waiting for extra data coming in, unless an "." is transmitted and Webmite stops with "no respose from server". So it would be nice if there would be something equal to "WEB TCP SEND", but in this Case "WEB TCP CLIENT SEND" which doesn´t wait for an ACK.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024