Skip to content

Commit 84e0cfc

Browse files
committed
Do not skip the last 0x00 anymore since be09d4e
1 parent 69dc896 commit 84e0cfc

File tree

1 file changed

+3
-3
lines changed
  • libraries/STM32H747_System/examples/WiFiFirmwareUpdater

1 file changed

+3
-3
lines changed

libraries/STM32H747_System/examples/WiFiFirmwareUpdater/Readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ xxd -i cacert.pem -n cacert_pem | sed 's/^unsigned/const unsigned/g' > certifica
1313
> [!NOTE]
1414
> Pre-requisites: `xxd`, GNU Tools (Use g-tools on MacOS: e.g., `gtail`, `ghead`)
1515
```
16-
cat certificates.h | tail -n +2 | head -n -2 | head -c -7 | xxd -r -p > cacert.pem
16+
cat certificates.h | tail -n +2 | head -n -2 | xxd -r -p > cacert.pem
1717
```
1818
## Listing certifcates in `certificates.h`
1919

2020
> [!NOTE]
2121
> Pre-requisites: `openssl`
2222
2323
```
24-
cat certificates.h | tail -n +2 | head -n -2 | head -c -7 | xxd -r -p > cacert.pem
24+
cat certificates.h | tail -n +2 | head -n -2 | xxd -r -p > cacert.pem
2525
openssl crl2pkcs7 -nocrl -certfile cacert.pem | openssl pkcs7 -print_certs | grep '^subject'
2626
```
2727

@@ -31,5 +31,5 @@ openssl crl2pkcs7 -nocrl -certfile cacert.pem | openssl pkcs7 -print_certs | gre
3131
> The PEM file for the root CA to add, e.g., `new_root.pem`
3232
3333
```
34-
cat certificates.h | tail -n +2 | head -n -2 | head -c -7 | xxd -r -p | cat - new_root.pem | xxd -n cacert_pem -i | sed 's/^unsigned/const unsigned/g' > certificates.h
34+
cat certificates.h | tail -n +2 | head -n -2 | xxd -r -p | cat - new_root.pem | xxd -n cacert_pem -i | sed 's/^unsigned/const unsigned/g' > certificates.h
3535
```

0 commit comments

Comments
 (0)