create a common name for autoTLS agent certs
This commit is contained in:
parent
82544b64e5
commit
1acde6e30a
|
@ -65,7 +65,8 @@ func (c *Client) RequestAutoEncryptCerts(servers []string, port int, token strin
|
|||
}
|
||||
|
||||
// Create a CSR.
|
||||
csr, err := connect.CreateCSR(id, pk)
|
||||
commonName := fmt.Sprintf("%s.agent.%s.%s", id.Agent, id.Datacenter, c.config.Domain)
|
||||
csr, err := connect.CreateCSR(id, commonName, pk)
|
||||
if err != nil {
|
||||
return errFn(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue