Skip to content

Commit

Permalink
update to new cli format
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Mar 24, 2024
1 parent 75026df commit add12cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/docs/tools/teddyCloud/dns/esp32.md
Expand Up @@ -4,7 +4,7 @@ description: ""
---

# ESP32
You can either set the IP/DNS within the image or you may do it like on the [CC3235](../cc3235).
You can either set the IP/hostname within the image or you may do it like on the [CC3235](../cc3235).
With the teddyCloud you can use the ESP32 box flashing section to can set the DNS or IP address during the flash process.

[Please continue with on the teddyCloud tool page from the beginning](../../#additional)
4 changes: 2 additions & 2 deletions content/docs/tools/teddyCloud/dump-certs/esp32.md
Expand Up @@ -17,7 +17,7 @@ After that you can manually extract them into the ```/certs/client/``` directory
# Please check the filename of your backup
# Be sure you are in the teddycloud directory
# cd /teddycloud/ # just for docker
teddycloud ESP32CERT extract data/firmware/ESP32_<mac>.bin certs/client
teddycloud --esp32-extract data/firmware/ESP32_<mac>.bin --destination certs/client
```
Please check the filename of the extracted certs, especially the case! Change them to lowercase if they are uppercase.
```
Expand All @@ -40,7 +40,7 @@ Be sure, that the dump is okay and you are able to extract the certificates.
esptool.py -b 921600 read_flash 0x0 0x800000 tb.esp32.bin
# extract certficates from firmware
mkdir certs/client/esp32
teddycloud ESP32CERT extract tb.esp32.bin certs/client/esp32
teddycloud --esp32-extract tb.esp32.bin --destination certs/client/esp32
# Copy box certificates to teddyCloud
cp certs/client/esp32/CLIENT.DER certs/client/client.der
cp certs/client/esp32/PRIVATE.DER certs/client/private.der
Expand Down
8 changes: 6 additions & 2 deletions content/docs/tools/teddyCloud/flash-ca/esp32.md
Expand Up @@ -5,7 +5,7 @@ description: ""

# ESP32
## Browser based
With teddyCloud you can also write a new image with your custom CA and a DNS/IP so the box connects to teddyCloud.
With teddyCloud you can also write a new image with your custom CA and a hostname/IP so the box connects to teddyCloud.
If you have a Fritzbox you can set it to tc.fritz.box (see CC3200 how to configure the hostname on your Fritzbox), if not set it to the IP of teddyCloud.

Check, that your backup of your flash is okay and you were able to extract the certificates.
Expand All @@ -20,8 +20,12 @@ Replace the original CA within your flash dump with esptool.
```
# copy firmware backup
cp tb.esp32.bin tb.esp32.fakeca.bin
# inject new CA into firmware
teddycloud ESP32CERT inject tb.esp32.fakeca.bin certs/client/esp32-fakeca
teddycloud --esp32-inject tb.esp32.fakeca.bin --source certs/client/esp32-fakeca
# modify IP/hostname (optional)
teddycloud --esp32-hostpatch tb.esp32.fakeca.bin --hostname <YOUR-IP/HOST>
# flash firmware with new CA
esptool.py -b 921600 write_flash 0x0 tb.esp32.fakeca.bin
```
Expand Down

0 comments on commit add12cc

Please sign in to comment.