const COMMON_NAME … // TestSelfSignedCertHasSAN verifies the existing of // a SAN on the generated self-signed certificate. // a SAN ensures that the certificate is considered // valid by default in go 1.15 and above, which // turns off fallback to Common Name by default. func TestSelfSignedCertHasSAN(t *testing.T) { … }