gpt4 book ai didi

Android 7 不允许我的 LetsEncrypt SSL 证书

转载 作者:太空宇宙 更新时间:2023-11-03 14:40:10 33 4
gpt4 key购买 nike

我将 nginx 与我自己的 SSL 证书链一起使用,但我遇到了 android 7 的问题。我不明白this solution .

我的 nginx 配置是:

server {

listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/server.mydomain.cloud/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/server.mydomain.com/privkey.pem;
include snippets/ssl-params.conf;

我该怎么办?谢谢!

最佳答案

我的解决方案,现在可以使用了:

      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());

关于Android 7 不允许我的 LetsEncrypt SSL 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43963709/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com