yea, that's really all it takes to fix this (#1202)
This commit is contained in:
parent
c8b4737c42
commit
2a88642c55
@ -105,11 +105,6 @@ func cmdNewService(cmd *cobra.Command, args []string) error {
|
|||||||
return errs.New("CA certificate and/or key already exits, NOT overwriting!")
|
return errs.New("CA certificate and/or key already exits, NOT overwriting!")
|
||||||
}
|
}
|
||||||
|
|
||||||
ca, caerr := caConfig.Create(process.Ctx(cmd), os.Stdout)
|
|
||||||
if caerr != nil {
|
|
||||||
return caerr
|
|
||||||
}
|
|
||||||
|
|
||||||
identConfig := identity.SetupConfig{
|
identConfig := identity.SetupConfig{
|
||||||
CertPath: identCertPath,
|
CertPath: identCertPath,
|
||||||
KeyPath: identKeyPath,
|
KeyPath: identKeyPath,
|
||||||
@ -119,6 +114,11 @@ func cmdNewService(cmd *cobra.Command, args []string) error {
|
|||||||
return errs.New("Identity certificate and/or key already exits, NOT overwriting!")
|
return errs.New("Identity certificate and/or key already exits, NOT overwriting!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ca, caerr := caConfig.Create(process.Ctx(cmd), os.Stdout)
|
||||||
|
if caerr != nil {
|
||||||
|
return caerr
|
||||||
|
}
|
||||||
|
|
||||||
_, iderr := identConfig.Create(ca)
|
_, iderr := identConfig.Create(ca)
|
||||||
if iderr != nil {
|
if iderr != nil {
|
||||||
return iderr
|
return iderr
|
||||||
|
Loading…
Reference in New Issue
Block a user