freeboxos / freeboxos-bash-api

Access FreeboxOS API from bash
GNU General Public License v3.0
50 stars 11 forks source link

ERROR: FREEBOX_CA_BUNDLE is not a list of valid PEM CA certificate #9

Open ced30fr opened 6 months ago

ced30fr commented 6 months ago

In freebox delta on VM Homeassistant :

source ./fbx-delta-nba_bash_api.sh mktemp: Invalid argument ./fbx-delta-nba_bash_api.sh:291: no such file or directory: ./fbx-delta-nba_bash_api.sh:292: command not found: file

ERROR: FREEBOX_CA_BUNDLE is not a list of valid PEM CA certificate

WARNING: fbx-delta-nba_bash_api.sh library will fallback to insecure TLS !

nbanb commented 2 months ago

Hi

Sorry, as the source had not been merged since my last commit on my forked repository, I have not seen your case before today. Please next time open your case directly on : https://github.com/nbanb/fbx-delta-nba_bash_api.sh/issues

I will have a look in the issue, but it would be easier to following the case at https://github.com/nbanb/fbx-delta-nba_bash_api.sh/issues (I will be noticed...)

NB: if you're on a local Network with trusted computer and source, you can ignore the TLS issue, TLS will work BUT certificate would not be validated.

Kind regards nbanba

nbanb commented 1 week ago

Hi

OK, you didn't migrate the issue at a place where I can easily follow it, but as I'm the actual maintainer of the code, I'm going back here to answer:

First for making work the project, I recommand you to see External tools

Second, I'm sorry but I did not specify that standard packages like GNU Coreutils and util-linux (or similar under other UNIX systems including MACOSX) are also needed, but I think it would be difficult to use a unix or a linux system without those tools

The error message show that you must have file command on the system (please install it !)

I did not specify file command in the list of tools needed to use this project because it's written in file command manpage that every UNIX like machine since 1973 are including a file command ... (Research v4 was Unix before SystemV !)

Extract from : man --locale=us file image

I will see to add a note in the README.md for HomeAssistant users

Please let me know if you were able to use the library after installing 'file' command on your HA system. Also, please use the last version of the library which you can download here: fbx-delta-nba_bash_api.sh

Kind regards nbanba