fix: Bug where the ca key was being persisted to disk instead of client/server
Also fixes naming of some variables leftover from bad copy-paste.
This commit is contained in:
1 parent
f6991cbe1d
commit
9bdbc79458
3 files changed
+22
-22
No files matched your search
@@ -64,13 +64,13 @@ var generateCACmd = &cobra.Command{
|
||||
})
|
||||
|
||||
// Write ca to disk.
|
||||
cafn := path.Join(OutDir, Name+"_ca.crt")
|
||||
cafn := path.Join(OutDir, Name+".crt")
|
||||
err = createFileWith(cafn, caPEMBytes, pki.CertFilePerms)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Write private key to disk.
|
||||
keyfn := path.Join(OutDir, Name+"_ca.key")
|
||||
keyfn := path.Join(OutDir, Name+".key")
|
||||
err = createFileWith(keyfn, pki.MarshalKeyToPEM(key), pki.PrivateKeyFilePerms)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user