Skip to content

Commit

Permalink
util: Fix compatibility with JDBC and Automatic TLS (#26931)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Aug 9, 2021
1 parent bd7e3ae commit af2da8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ func createTLSCertificates(certpath string, keypath string) error {
}

template := x509.Certificate{
Subject: pkix.Name{
CommonName: "TiDB_Server_Auto_Generated_Server_Certificate",
},
SerialNumber: big.NewInt(1),
NotBefore: notBefore,
NotAfter: notAfter,
Expand Down

0 comments on commit af2da8d

Please sign in to comment.