Android 7 doesn't allow my LetsEncrypt SSL certificate

前端 未结 1 1164
渐次进展
渐次进展 2021-01-28 12:59

Im using nginx with my own SSL certificate chain but I\'m getting a problem with android 7. I dont understand this solution.

My nginx configuration is:

s         


        
相关标签:
1条回答
  • 2021-01-28 13:24

    My solution, now its working:

          ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
               .tlsVersions(TlsVersion.TLS_1_2)
               .cipherSuites(
                       CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, //aws ssl
                       CipherSuite.TLS_DHE_RSA_WITH_AES_256_CBC_SHA) //letsencrypt
               .build();
    
       OkHttpClient.Builder builder = new OkHttpClient.Builder()
               .connectionSpecs(Collections.singletonList(spec))
               .addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY));
    
       Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
               .clientBuilder(builder)
               .applicationId("")
               .clientKey("")
               .server("")
               .build());
    
    0 讨论(0)
提交回复
热议问题