Closed gabrielmancini closed 5 months ago
Hi @gabrielmancini
Sorry for not responding earlier.
We have updated nerves_hub_link
to use the default cert store now if no cert files are provided.
Since its been several months from your last message, were you able to get everything up and running?
I'm going to close this issue for the time being, but I'm happy to reopen it if you are still experiencing any problems.
Hello folks,
I'm having throble to connect my nerves_hub_web with my nerves project (firmware), using the nerves_hub_link and nerves_hub_cli, and trying to connect to my local nerves_hub_web, i am not using the default certificates, inside the test folder
i will walkthrow about my setup:
so, i cloned https://github.com/nerves-hub/nerves_hub_web
and the nerves_hub_web works perfect
after that i create a new nerves project with command line:
and put the sdcard into my rpi4 and connected into my network
so the command
mix update
works fine and nerves booted without any problemsthen i understand that i need to connect the link, so i did:
in the nerves_hub_web clone folder i created a "env" file: /home/me/nerves_hub_web/.env.dev.local with the follow content
i found this reference in a elixirforum post: https://elixirforum.com/t/what-is-the-proper-certificates-configuration-for-nerveshub-2-0-and-nerveshublink/55809
pls note this variable
NERVES_HUB_CA_DIR
, i just assign the dir folder where i put the certificates, i found this env var in config/dev.exs in nerves_hub_web, and on the firmware project i change the config/dev.exs with the follow code:and the mix.exs:
and a .env file /home/me/firmeware/.env.nerves_hub_cli with:
the
NERVES_HUB_TOKEN
i created using the defaut user on nerves_hub_web on http://localhost:4000/account/nerveshub/tokensand then i follow this gist to create the certificates: https://gist.github.com/guillego/86b31452e639d7558c0e63b6937606bc
and i finish creating the certificates like Generate the ca.key with
Generate the ca.pem with
Generate nerveshub.nerves-hub.org-key.pem with
Generate nerveshub.nerves-hub.org.csr with
Create nerveshub.nerves-hub.org.ext with:
Generate nerveshub.nerves-hub.org.pem:
Move nerveshub.nerves-hub.org.pem and nerveshub.nerves-hub.org-key.pem to /home/me/.nerves-hub
when i run
i had this:
and my firmware is not connected to nerves_hub and the nerves_hub_web not shows new devices