"Trust anchor for certification path not found" error when xDrip+ tries to upload data to my Nightscout portal #3368
Replies: 8 comments 24 replies
-
Have you asked Railway? |
Beta Was this translation helpful? Give feedback.
-
Hello Nicola, I'm facing same issue there since 2 days with an old Wiko Harry (Android Nougat 7) device : neither the "600 serie uploader" (for medtronic 640G pump) nor xdrip+ (latest release) are able to reach the nightscout API using a Letsencrypt SSL certificate to enable HTTPS stream. Both applications report "trust anchor for certification path not found". At the same time this device is able to access the HTTPS web reporting page of nightscout without any error with the SSL certificate and its certification chain. I suppose the "600 serie uploader" and "xdrip" apps are using java primitives using the android system layer to validate the SSL certification path (chain) while web browsers apps like chrome or firefox may use their own SSL certificate validation processes. That may explain the behavior I do see here. I was investigating the Letsencrypt Root CA expiration this morning. I found out LetsEncrypt root CA should initially expire in 2021 and have been extended with a partnership (IdenTrust) for 3 years more, until beginning of 2024. Maybe this is the reason why some Root CA on old android systems may not be up to date and require a manual update. I'm looking if we could add manually required Root CA on these old devices in order certification path validation to be working back... I need find out :
But this did not fix the issue. I also do see IdenTrust root CA files on my android 7 with validity until 16th of January 2034... LetsEncrypt details about its root CA expiration : "If you use Android 7.0 or earlier, you may need to take action to ensure you can still access websites secured by Let’s Encrypt certificates. We recommend installing and using Firefox Mobile, which uses its own trust store instead of the Android OS trust store, and therefore trusts ISRG Root X1." Some fix used 3 years ago to investigate : Regards, Freddy. |
Beta Was this translation helpful? Give feedback.
-
well outside my skills but could you use a different type of encryption or certificate at the Nightscout server ? If the one that doesn't work with Android 7 were not available I would expect something else would be used instead. |
Beta Was this translation helpful? Give feedback.
-
@ffrouin, @PhilTU and @Navid200 ... |
Beta Was this translation helpful? Give feedback.
-
Innanzitutto ti ringrazio per la tua cortese risposta. Ti dico intanto che
su xdrip ho un avviso che riguarda trust anchor.
Per quanto riguarda invece il tuo suggerimento, ti dico che io già
utilizzavo mai scout follower. Ma è proprio questo il problema perché i
dati trasmessi da nice scout non riescono ad entrare su xdrip poiché manca
il certificato di sicurezza. Dovrebbe essere quello di let's Encrypt che è
scaduto poco più di un mese fa per gli Android 7.
Ancora non ho trovato soluzione. Ho scritto anche gli sviluppatori di xdrip
sperando che questa segnalazione venga presa in considerazione.
L'alternativa sarebbe installare una rom sul tablet che consente di
installare un sistema operativo superiore ad Android 7 e con esso anche il
certificato let's encrypt.
Grazie ancora per la tua risposta
Il ven 22 mar 2024, 18:36 nicola-iuretigh ***@***.***> ha
scritto:
… Ciao @giuseppe-Marfisi <https://github.com/giuseppe-Marfisi> ...
Scusami per il ritardo con cui ti rispondo.
Da qualche settimana non riesco più a leggere i dati su xdrip (come
follower) sul mio tablet Android 7 nonostante il fatto che io continuo a
visualizzare i dati tramite browser su nighscout
Mi sembra che il tuo problema sia un po' diverso dal mio... il mio
dispositivo xDrip Master non riusciva a caricare i dati sul portale
Nightscout mentre comunicava normalmente con i follower, mentre nel tuo
caso sembra il contrario: Nightscout è ok, ma il follower non riceve più
nulla...
Nel log di xDrip master ci sono messaggi di errore relativi a "Trust
anchor", "certificates" o similari?
Se ho capito bene hai trovato una soluzione temporanea, ma non ho capito
come. Puoi spiegarmi per favore? Grazie
Certamente...
Visto che il dispositivo master non riusciva a caricare su Nightscout, ma
riusciva tranquillamente a inviare i dati sul dispositivo follower ho
configurato quest'ultimo (che è un dispositivo più moderno) per trasmettere
su Nightscout i dati che gli sono stati trasmessi dal master.
Visto che nel tuo caso i dati si Nightscout ci sono, potresti provare a
configurare il tuo tablet Android 7 come "Nightscout follower" invece che
come "xDrip follower" e vedere cosa succede.
Ti avviso però che è un'operazione che *io non ho mai fatto*.
So che tra i "Dati Hardware di origine" esiste anche la voce "Nightscout
Follower" ma oltre a questo non sono mai andato.
E non so nemmeno cosa succede alla tua configurazione "xDrip Follower" una
volta che hai cambiato modalità :( :( :(
Non so se sono stato di molto aiuto...
—
Reply to this email directly, view it on GitHub
<#3368 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHEKJOUTMRTBN5JQP2QAZHDYZRT3DAVCNFSM6AAAAABD4T5QK2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQOBRGEZTI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Mia figlia non ha xdrip (master) per android. Lei usa Shuggar su IPhone e
credo che questa funzione non è presente, che io sappia.
My daughter doesn't have xdrip (master) for android. She uses Shuggar on
iPhone and I think this feature is not present that I know of
Il dom 24 mar 2024, 18:22 nicola-iuretigh ***@***.***> ha
scritto:
… Ciao @giuseppe-Marfisi <https://github.com/giuseppe-Marfisi>.
ti dico che io già utilizzavo mai scout follower
Se stai già usando la modalità "Nightscout follower"e non funziona (per il
problema dei certificati) allora potresti provare la modalità "xDrip
follower" in cui il dispositivo master invia i dati direttamente al
dispositivo follower senza per questo smettere di trasmettere i dati al
portale Nightscout.
Se non hai mai configurato questo tipo di impostazione qui c'è un video
<https://youtu.be/LcgjfbYcWkE?si=hg2e3ZBrPlvHWBJf> molto utile.
La comunicazione "diretta" tra i due dispositivi non dovrebbe "inciampare"
nel problema dei certificati.
Ciao.
—
Reply to this email directly, view it on GitHub
<#3368 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHEKJOVOGIXROX7SQNA2CV3YZ4DVVAVCNFSM6AAAAABD4T5QK2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQOJUGE4DG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Now I understand @giuseppe-Marfisi... |
Beta Was this translation helpful? Give feedback.
-
Thank you
Il dom 24 mar 2024, 18:46 nicola-iuretigh ***@***.***> ha
scritto:
… My daughter doesn't have xdrip (master) for android. She uses Shuggar on
iPhone and I think this feature is not present that I know of
Now I understand @giuseppe-Marfisi <https://github.com/giuseppe-Marfisi>
...
Unfortunately I have no more suggestions or workarounds.. sorry :(
—
Reply to this email directly, view it on GitHub
<#3368 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHEKJOVSLXJMFNMLSLN6FB3YZ4GOXAVCNFSM6AAAAABD4T5QK2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQOJUGI4DO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi.
It's been several days that my daughter's xDrip+ app logs these errors while trying to upload glucose readings to the Nightscout portal:
and currently I'm not able to understand where the problem is and how to restore.
We are using xDrip+ version
23ccbd1-2023.07.16
(code2123071614
) on an old Samsung J5 (year 2015) running Android 6.0.1.Our Nightscout portal is version 14.2.6 and is running on Railway cloud (
https://railway.app/
) on https protocol.I made some research and it seems that the problem can be related to some client certificate expiration (Android version too old perhaps), but I did not found any workaround or suggestment to restore the correct uploading behaviour.
Does any solution or fix exist for this problem?
Thank you very much in advance for any support.
Beta Was this translation helpful? Give feedback.
All reactions