Ykk
Ykk
  • 发布:2022-11-22 17:08
  • 更新:2022-11-22 17:16
  • 阅读:479

uniapp 本地打包 uni.configMTLS 配置https证书异常

分类:uni-app


本地打包后https 证书不能正常加载
W/System.err: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
W/System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:368)
W/System.err: at dc.squareup.okhttp3.internal.connection.RealConnection.connectTls(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.connection.RealConnection.establishProtocol(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.connection.RealConnection.connect(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.connection.StreamAllocation.findConnection(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.connection.StreamAllocation.findHealthyConnection(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.connection.StreamAllocation.newStream(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.connection.ConnectInterceptor.intercept(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.cache.CacheInterceptor.intercept(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.BridgeInterceptor.intercept(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
W/System.err: at dc.squareup.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
W/System.err: at dc.squareup.okhttp3.RealCall.getResponseWithInterceptorChain(Unknown Source)
W/System.err: at dc.squareup.okhttp3.RealCall.execute(Unknown Source)
W/System.err: at io.dcloud.feature.weex.adapter.DCWXHttpAdapter$1.run(DCWXHttpAdapter.java:93)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err: at java.lang.Thread.run(Thread.java:762)
W/System.err: Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:532)
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:387)
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:361)
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:290)
W/System.err: at android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94)
W/System.err: at android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:88)
W/System.err: at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:178)
W/System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:617)
W/System.err: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
W/System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:364)
W/System.err: ... 23 more
W/System.err: Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
W/System.err: ... 33 more
如何解决??

2022-11-22 17:08 负责人:无 分享
已邀请:
Ykk

Ykk (作者)

启动时报错

  • hahaha13579

    请问作者解决了吗

    2024-08-16 17:02

该问题目前已经被锁定, 无法添加新回复