var rsaCertPEM … var rsaKeyPEM … const mismatchRSAKeyPEM … func TestCreateSecretTLS(t *testing.T) { … } func write(path, contents string, t *testing.T) { … } func writeKeyPair(tmpDirPath, key, cert string, t *testing.T) (keyPath, certPath string) { … }