eigenein / my-iot-rs

Yet another home automation (alpha)
https://eigenein.github.io/my-iot-rs/html
MIT License
32 stars 5 forks source link

Certificate verify failed in builds produced on GitHub #70

Closed eigenein closed 4 years ago

eigenein commented 4 years ago

It works fine if built on a developer machine with make docker/build/arm-unknown-linux-gnueabihf but crashes if built on GitHub:

Feb 03 00:21:49 raspberrypi my-iot[5048]: 2020-02-03 00:21:49,257 ERROR [my_iot::core::supervisor] Thread my-iot::telegram::telegram::producer crashed: Error(Hyper(Error(Connect, Custom { kind: Other, error: Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 337047686, library: "SSL routines", function: "tls_process_server_certificate", reason: "certificate verify failed", file: "ssl/statem/statem_clnt.c", line: 1915 }]))) }, X509VerifyResult { code: 19, error: "self signed certificate in certificate chain" }) })), "https://api.telegram.org/botxxx/getUpdates")
Feb 03 00:21:49 raspberrypi my-iot[5048]: 2020-02-03 00:21:49,280 ERROR [my_iot::core::supervisor] Thread my-iot::buienradar::buienradar crashed: Error(Hyper(Error(Connect, Custom { kind: Other, error: Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 337047686, library: "SSL routines", function: "tls_process_server_certificate", reason: "certificate verify failed", file: "ssl/statem/statem_clnt.c", line: 1915 }]))) }, X509VerifyResult { code: 20, error: "unable to get local issuer certificate" }) })), "https://json.buienradar.nl/")