This script is used to generate the required certs for use with both the client and the mock target.
Simply run the script:
./generate.sh
Then pass the generated certs into the client and target:
The script generates Target certificates with the name “target.com”
./gnoi_reset \
<...>
-target_name target.com \
-ca /path/to/ca.crt \
-cert /path/to/client.crt \
-key /path/to/client.key
./gnoi_target \
<...>
-ca /path/to/ca.crt \
-cert /path/to/target.crt \
-key /path/to/target.key