Skip to content

Commit

Permalink
Merge pull request #188 from yaxinlx/master
Browse files Browse the repository at this point in the history
avoid errors in "openssl req" command for old openssl versions.
  • Loading branch information
Phillip Wittrock committed Oct 21, 2017
2 parents 4c733dd + 91e9d65 commit 7a22d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/apiserver-boot/boot/build/build_resource_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func createCerts() {
"-out", filepath.Join(dir, "apiserver_ca.crt"),
"-days", "365",
"-nodes",
"-subj", fmt.Sprintf("/C=/ST=/L=/O=/OU=/CN=%s-certificate-authority", Name),
"-subj", fmt.Sprintf("/C=un/ST=st/L=l/O=o/OU=ou/CN=%s-certificate-authority", Name),
)
} else {
log.Printf("Skipping generate CA cert. File already exists.")
Expand All @@ -193,7 +193,7 @@ func createCerts() {
"-newkey", "rsa:2048",
"-nodes",
"-keyout", filepath.Join(dir, "apiserver.key"),
"-subj", fmt.Sprintf("/C=/ST=/L=/O=/OU=/CN=%s.%s.svc", Name, Namespace),
"-subj", fmt.Sprintf("/C=un/ST=st/L=l/O=o/OU=ou/CN=%s.%s.svc", Name, Namespace),
)
} else {
log.Printf("Skipping generate apiserver csr. File already exists.")
Expand Down

0 comments on commit 7a22d93

Please sign in to comment.