cert: add bufconn to TLS hostnames
This commit is contained in:
parent
27337dc973
commit
ca22001bab
@ -109,6 +109,10 @@ func GenCertPair(org, certFile, keyFile string, tlsExtraIPs,
|
|||||||
// verification will fail in the client.
|
// verification will fail in the client.
|
||||||
dnsNames = append(dnsNames, "unix", "unixpacket")
|
dnsNames = append(dnsNames, "unix", "unixpacket")
|
||||||
|
|
||||||
|
// Also add hostnames for 'bufconn' which is the hostname used for the
|
||||||
|
// in-memory connections used on mobile.
|
||||||
|
dnsNames = append(dnsNames, "bufconn")
|
||||||
|
|
||||||
// Generate a private key for the certificate.
|
// Generate a private key for the certificate.
|
||||||
priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
|
priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user