File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed
src/main/java/org/sopt/makers/internal/common/config Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change 22
33import okhttp3 .ConnectionSpec ;
44import okhttp3 .OkHttpClient ;
5- import okhttp3 .TlsVersion ;
6- import okhttp3 .CipherSuite ;
75import org .springframework .context .annotation .Bean ;
86import org .springframework .context .annotation .Configuration ;
97
10- import java .util .Collections ;
11- import java .util .List ;
12- import java .util .concurrent .TimeUnit ;
8+ import java .util .Arrays ;
139
1410@ Configuration
1511public class OkHttpConfig {
1612
1713 @ Bean
1814 public OkHttpClient gabiaOkHttpClient () {
19-
20- ConnectionSpec spec = new ConnectionSpec .Builder (ConnectionSpec .MODERN_TLS )
21- .tlsVersions (TlsVersion .TLS_1_2 ) // 일단 TLS 1.2로 고정
22- .cipherSuites (
23- CipherSuite .TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
24- CipherSuite .TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,
25- CipherSuite .TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA ,
26- CipherSuite .TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
27- )
28- .build ();
29-
3015 return new OkHttpClient .Builder ()
31- .connectionSpecs (List .of (spec ))
16+ .connectionSpecs (Arrays .asList (
17+ ConnectionSpec .MODERN_TLS ,
18+ ConnectionSpec .COMPATIBLE_TLS
19+ ))
3220 .build ();
3321 }
3422}
You can’t perform that action at this time.
0 commit comments