@@ -8,12 +8,12 @@ func TestClientTLSConfig(t *testing.T) {
8
8
derfmt := CertKeyFormatDER
9
9
pemfmt := CertKeyFormatPEM
10
10
pfxfmt := CertKeyFormatPKCS12
11
- testTLSConfig (t , false , "internal/ testing/tls/ca.crt" , pemfmt , "internal/ testing/tls/client.crt" , pemfmt , "internal /testing/tls/client.key" , pemfmt , "" )
12
- testTLSConfig (t , false , "internal/ testing/tls/ca.crt" , pemfmt , "internal/ testing/tls/client.der" , derfmt , "internal /testing/tls/client.key" , pemfmt , "" )
13
- testTLSConfig (t , false , "internal/ testing/tls/ca.crt" , pemfmt , "internal/ testing/tls/client.pfx" , pfxfmt , "internal /testing/tls/client.key" , pemfmt , "" )
14
- testTLSConfig (t , false , "internal/ testing/tls/ca.crt" , pemfmt , "internal /testing/tls/client_pass.pfx" , pfxfmt , "" , pemfmt , "pfxpassword" )
15
- testTLSConfig (t , false , "internal/ testing/tls/ca.der" , derfmt , "internal /testing/tls/client.pfx" , pfxfmt , "" , pemfmt , "" )
16
- testTLSConfig (t , false , "internal/ testing/tls/ca.crt" , pemfmt , "internal/ testing/tls/testcert.pem" , pemfmt , "internal /testing/tls/testkey.pem" , pemfmt , "" )
11
+ testTLSConfig (t , false , "../../ testing/tls/ca.crt" , pemfmt , "../../ testing/tls/client.crt" , pemfmt , "../.. /testing/tls/client.key" , pemfmt , "" )
12
+ testTLSConfig (t , false , "../../ testing/tls/ca.crt" , pemfmt , "../../ testing/tls/client.der" , derfmt , "../.. /testing/tls/client.key" , pemfmt , "" )
13
+ testTLSConfig (t , false , "../../ testing/tls/ca.crt" , pemfmt , "../../ testing/tls/client.pfx" , pfxfmt , "../.. /testing/tls/client.key" , pemfmt , "" )
14
+ testTLSConfig (t , false , "../../ testing/tls/ca.crt" , pemfmt , "../.. /testing/tls/client_pass.pfx" , pfxfmt , "" , pemfmt , "pfxpassword" )
15
+ testTLSConfig (t , false , "../../ testing/tls/ca.der" , derfmt , "../.. /testing/tls/client.pfx" , pfxfmt , "" , pemfmt , "" )
16
+ testTLSConfig (t , false , "../../ testing/tls/ca.crt" , pemfmt , "../../ testing/tls/testcert.pem" , pemfmt , "../.. /testing/tls/testkey.pem" , pemfmt , "" )
17
17
}
18
18
19
19
func testTLSConfig (
@@ -38,12 +38,12 @@ func testTLSConfig(
38
38
}
39
39
40
40
func TestGuessFormat (t * testing.T ) {
41
- guessFormat (t , "internal /testing/tls/client.crt" , CertKeyFormatPEM )
42
- guessFormat (t , "internal /testing/tls/client.cer" , CertKeyFormatPEM )
43
- guessFormat (t , "internal /testing/tls/client.key" , CertKeyFormatPEM )
44
- guessFormat (t , "internal /testing/tls/client.pfx" , CertKeyFormatPKCS12 )
45
- guessFormat (t , "internal /testing/tls/client.der" , CertKeyFormatDER )
46
- forceFormat (t , "internal /testing/tls/client.guess" , CertKeyFormatPEM , CertKeyFormatPEM )
41
+ guessFormat (t , "../.. /testing/tls/client.crt" , CertKeyFormatPEM )
42
+ guessFormat (t , "../.. /testing/tls/client.cer" , CertKeyFormatPEM )
43
+ guessFormat (t , "../.. /testing/tls/client.key" , CertKeyFormatPEM )
44
+ guessFormat (t , "../.. /testing/tls/client.pfx" , CertKeyFormatPKCS12 )
45
+ guessFormat (t , "../.. /testing/tls/client.der" , CertKeyFormatDER )
46
+ forceFormat (t , "../.. /testing/tls/client.guess" , CertKeyFormatPEM , CertKeyFormatPEM )
47
47
}
48
48
49
49
func guessFormat (t * testing.T , filename string , formatExpected CertificateKeyFormat ) {
0 commit comments