Browse code

'osadm create-api-client-config' was overwriting the client certificate with the CA

Brenton Leanhardt authored on 2015/05/12 04:17:54
Showing 1 changed files
... ...
@@ -104,7 +104,7 @@ func (o CreateClientOptions) CreateClientFolder() error {
104 104
 
105 105
 	clientCertFile := DefaultCertFilename(o.ClientDir, o.User)
106 106
 	clientKeyFile := DefaultKeyFilename(o.ClientDir, o.User)
107
-	clientCopyOfCAFile := DefaultCAFilename(o.ClientDir, o.User)
107
+	clientCopyOfCAFile := DefaultCAFilename(o.ClientDir, "ca")
108 108
 	kubeConfigFile := DefaultKubeConfigFilename(o.ClientDir, o.User)
109 109
 
110 110
 	createClientCertOptions := CreateClientCertOptions{