make-ssl: fix subject for nodes
This commit is contained in:
parent
7c8be652e7
commit
043a874e74
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ if [ -n "$HOSTS" ]; then
|
|||
cn="${host%%.*}"
|
||||
# node key
|
||||
openssl genrsa -out node-${host}-key.pem 2048 > /dev/null 2>&1
|
||||
openssl req -new -key node-${host}-key.pem -out node-${host}.csr -subj "/CN=kube-node-${cn}/O=system:node" > /dev/null 2>&1
|
||||
openssl req -new -key node-${host}-key.pem -out node-${host}.csr -subj "/CN=kube-node-${cn}/O=system:nodes" > /dev/null 2>&1
|
||||
openssl x509 -req -in node-${host}.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out node-${host}.pem -days 365 > /dev/null 2>&1
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue