Browse Source

Merge pull request #1254 from iJanki/cert_group

Adding /O=system:masters to admin certificate
pull/1280/head
Spencer Smith 7 years ago
committed by GitHub
parent
commit
c572760a66
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/secrets/files/make-ssl.sh

2
roles/kubernetes/secrets/files/make-ssl.sh

@ -85,7 +85,7 @@ if [ -n "$MASTERS" ]; then
cn="${host%%.*}"
# admin key
openssl genrsa -out admin-${host}-key.pem 2048 > /dev/null 2>&1
openssl req -new -key admin-${host}-key.pem -out admin-${host}.csr -subj "/CN=kube-admin-${cn}" > /dev/null 2>&1
openssl req -new -key admin-${host}-key.pem -out admin-${host}.csr -subj "/CN=kube-admin-${cn}/O=system:masters" > /dev/null 2>&1
openssl x509 -req -in admin-${host}.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out admin-${host}.pem -days 3650 > /dev/null 2>&1
done
fi

Loading…
Cancel
Save