18 lines
474 B
Bash
18 lines
474 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 \
|
||
|
--hostname non-esiste \
|
||
|
--public-key-path pubkey \
|
||
|
2>&1 || true \
|
||
|
) | grep '\[6\] Host not found'
|
||
|
|
||
|
isle nebula create-cert \
|
||
|
--hostname primus \
|
||
|
--public-key-path pubkey \
|
||
|
| grep -- '-----BEGIN NEBULA CERTIFICATE-----'
|