Commit 43c79c47 authored by Jondy Zhao's avatar Jondy Zhao

slapos-cygwin-bootstrip: add another computer certificate/key for test node

parent 97d95678
...@@ -28,6 +28,12 @@ function show_usage() ...@@ -28,6 +28,12 @@ function show_usage()
echo "" echo ""
echo "save them in your home path." echo "save them in your home path."
echo "" echo ""
echo "Register another computer for test node, save them in the root path"
echo ""
echo " test-computer.key"
echo " test-computer.crt"
echo ""
echo ""
} }
readonly -f show_usage readonly -f show_usage
...@@ -207,6 +213,9 @@ csih_inform "Starting configure slapos client and node ..." ...@@ -207,6 +213,9 @@ csih_inform "Starting configure slapos client and node ..."
for _name in certificate key computer.key computer.crt ; do for _name in certificate key computer.key computer.crt ; do
[[ -f ~/${_name} ]] || csih_error "missing file ~/${_name}" [[ -f ~/${_name} ]] || csih_error "missing file ~/${_name}"
done done
for _name in /test-computer.key /test-computer.crt ; do
[[ -f ${_name} ]] || csih_error "missing file ${_name}"
done
csih_inform "mkdir /etc/opt/slapos/ssl/partition_pki" csih_inform "mkdir /etc/opt/slapos/ssl/partition_pki"
mkdir -p /etc/opt/slapos/ssl/partition_pki mkdir -p /etc/opt/slapos/ssl/partition_pki
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment