Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Mono SSL error connecting to Windy and other web sites

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
mcrossley
Posts: 12774
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Mono SSL error connecting to Windy and other web sites

Post by mcrossley »

If you get an error uploading to Windy, or connecting to another web site that uses a Let's Encrypt certificate when running under Mono, then you need to "fix" the Mono installation as follows (Debian/RaspberryPi OS):
  1. Remove the DST_Root_CA_X3 certificate from the configuration

    Code: Select all

    sudo sed -i '/^mozilla\/DST_Root_CA_X3.crt$/ s/^/!/' /etc/ca-certificates.conf
    sudo update-ca-certificates
    
  2. To be sure, get the old certificate out of the way

    Code: Select all

    sudo mv -v /etc/ssl/certs/DST_Root_CA_X3.pem /etc/ssl/certs/DST_Root_CA_X3.pemxxx
    If the command fails the certificate has already been deleted: that is OK
    If the command goes well the certificate is now unreachable: that is OK
  3. Update the system certificate store

    Code: Select all

    sudo update-ca-certificates
  4. Synchronise the system certificates into Mono

    Code: Select all

    sudo cert-sync /etc/ssl/certs/ca-certificates.crt
Now you are done and the transfers with HTTPS should go without error (check the logfile please).

Background: This error is caused by an expired root certificate for Let's Encrypt. Linux and Windows ignore this expired certificate if the current certificate is present. Mono however fails to verify the connection if the expired certificate is present, ignoring the current certificate!

The commands above remove the expired certificate from the system certificate store, then resynchronise the system store into the Mono certificate store.
AndyKF650
Posts: 718
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv4 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Mono SSL error connecting to Windy and other web sites

Post by AndyKF650 »

Yes that worked just fine.
ea5xq
Posts: 21
Joined: Sat 25 Mar 2023 11:50 am
Weather Station: W8661
Operating System: MacOS

Re: Mono SSL error connecting to Windy and other web sites

Post by ea5xq »

Thanks , I had a problem with WeatherCloud and following your advice it works like a charm now, thanks a lot, this forum has helped me a lot setting up CMX in MacOs and recently in RaspBerryPi
Post Reply