-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from dnstapir/feature/mqtt_config_bootstrap
mqtt config bootstrap
- Loading branch information
Showing
21 changed files
with
470 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
if [ $# != 1 ]; then | ||
echo Usage: $0 instance-id | ||
echo \"instance-id\" is a string that you choose yourself that will identify this DNS TAPIR Edge instance. | ||
echo A domain name is usually a good idea. | ||
exit 1 | ||
fi | ||
|
||
id=$1 | ||
|
||
echo Your chosen DNS TAPIR Edge Id is \"$id\". | ||
/bin/echo -n "Proceed [yes]: " | ||
default_ans="yes" | ||
read answer | ||
|
||
if [ "$answer" == "" ]; then | ||
answer=$default_ans | ||
fi | ||
|
||
echo You typed: \"$answer\" | ||
|
||
if [ "$answer" != "yes" ]; then | ||
echo Terminating. | ||
exit 1 | ||
fi | ||
|
||
openssl genpkey -genparam -algorithm ec -pkeyopt ec_paramgen_curve:P-256 -out ecparam.pem | ||
openssl req -new -out ${id}.csr -newkey ec:ecparam.pem -keyout ${id}.key -subj "/CN=${id}" -nodes | ||
|
||
echo Send the file \"${id}.csr\" to DNS TAPIR admin. You will receive a \"${id}.crt\" in return. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module tem | ||
module tapir-pop | ||
|
||
go 1.22.0 | ||
|
||
|
Oops, something went wrong.