20 lines
538 B
Bash
20 lines
538 B
Bash
|
# shellcheck source=../../utils/with-1-data-1-empty-node-network.sh
|
||
|
source "$UTILS"/with-1-data-1-empty-node-network.sh
|
||
|
|
||
|
nebula-cert keygen -out-key /dev/null -out-pub pubkey
|
||
|
cat pubkey
|
||
|
|
||
|
(
|
||
|
isle nebula create-cert \
|
||
|
--admin-path admin.json \
|
||
|
--hostname non-esiste \
|
||
|
--public-key-path pubkey \
|
||
|
2>&1 || true \
|
||
|
) | grep '\[6\] Host not found'
|
||
|
|
||
|
isle nebula create-cert \
|
||
|
--admin-path admin.json \
|
||
|
--hostname primus \
|
||
|
--public-key-path pubkey \
|
||
|
| grep -- '-----BEGIN NEBULA CERTIFICATE-----'
|