admin: sanitize use of InitialName when needed
This commit is contained in:
parent
6ee9b342f1
commit
a46739ac36
3 changed files with 5 additions and 5 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue