Removed error code logic and replaced with library function (#39)
* Removed error code logic and replaced with library function * Added the gosecignore comment to prevent gosec failing
This commit is contained in:
committed by
GitHub Enterprise
parent
5449622d2a
commit
b20761cea0
@@ -207,7 +207,7 @@ func (ks *KeyStore) RenameCertificate(from, to string) error {
|
||||
// #nosec G204
|
||||
cmd := exec.Command("/opt/mqm/gskit8/bin/gsk8capicmd_64", "-cert", "-rename", "-db", ks.Filename, "-pw", ks.Password, "-label", from, "-new_label", to)
|
||||
cmd.Env = append(os.Environ(), "LD_LIBRARY_PATH=/opt/mqm/gskit8/lib64/:/opt/mqm/gskit8/lib")
|
||||
out, _, err := command.RunCmd(cmd)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
return fmt.Errorf("error running \"%v -cert -rename\": %v %s", "/opt/mqm/gskit8/bin/gsk8capicmd_64", err, out)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user