Skip to content

Commit

Permalink
Merge pull request kubernetes#2364 from rlarocque2/mkdir_fix
Browse files Browse the repository at this point in the history
make-cert.sh: Create directory before writing cert
  • Loading branch information
jbeda committed Nov 14, 2014
2 parents ec51ec3 + 63d6e7c commit f8a4bde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster/saltbase/salt/generate-cert/make-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
cert_dir=/srv/kubernetes
cert_file_owner=apiserver.apiserver

mkdir -p "$cert_dir"

openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
-subj "/CN=kubernetes.invalid/O=Kubernetes" \
-keyout "${cert_dir}/server.key" -out "${cert_dir}/server.cert"
Expand Down

0 comments on commit f8a4bde

Please sign in to comment.