mirror of https://github.com/status-im/consul.git
create a common name for autoTLS agent certs
This commit is contained in:
parent
9b1ac4e7ef
commit
5ba28a6a7b
|
@ -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