admin: sanitize use of InitialName when needed

This commit is contained in:
nemunaire 2017-01-19 13:11:45 +01:00 committed by nemunaire
commit a46739ac36
3 changed files with 5 additions and 5 deletions

View file

@ -23,13 +23,13 @@ func GenerateCRL() (string, error) {
}
func (t Team) GenerateCert() (string, error) {
cmd := exec.Command("/bin/bash", "./CA.sh", "-newclient", t.Name)
cmd := exec.Command("/bin/bash", "./CA.sh", "-newclient", t.InitialName)
return convOutput(cmd.CombinedOutput())
}
func (t Team) RevokeCert() (string, error) {
cmd := exec.Command("/bin/bash", "./CA.sh", "-revoke", t.Name)
cmd := exec.Command("/bin/bash", "./CA.sh", "-revoke", t.InitialName)
return convOutput(cmd.CombinedOutput())
}