Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1547

I am trying to get an Input Stream from a website, but all I get is: "Trust anchor for certification path not found" [duplicate]

$
0
0

I am trying to send a web request to this websitein order to gather information about the status of a public service.

The SSL certificateof the website seems fine, I did run the command for checking the certificate and it seems to be working.

openssl s_client -connect www.trentinotrasporti.it:443

The output of the command is:

CONNECTED(000001CC)depth=0 C = IT, L = Trento, O = TRENTINO TRASPORTI SPA, CN = *.trentinotrasporti.itverify error:num=20:unable to get local issuer certificateverify return:1depth=0 C = IT, L = Trento, O = TRENTINO TRASPORTI SPA, CN = *.trentinotrasporti.itverify error:num=21:unable to verify the first certificateverify return:1depth=0 C = IT, L = Trento, O = TRENTINO TRASPORTI SPA, CN = *.trentinotrasporti.itverify return:1---Certificate chain 0 s:C = IT, L = Trento, O = TRENTINO TRASPORTI SPA, CN = *.trentinotrasporti.it   i:C = US, O = DigiCert Inc, OU = www.digicert.com, CN = GeoTrust TLS RSA CA G1---Server certificate-----BEGIN CERTIFICATE-----MIIHdzCCBl+gAwIBAgIQD0qf8rVeDBFXuO3Dy+E4SjANBgkqhkiG9w0BAQsFADBgMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMR8wHQYDVQQDExZHZW9UcnVzdCBUTFMgUlNBIENBIEcxMB4XDTI0MDIyOTAwMDAwMFoXDTI1MDIyODIzNTk1OVowYDELMAkGA1UEBhMCSVQxDzANBgNVBAcTBlRyZW50bzEfMB0GA1UEChMWVFJFTlRJTk8gVFJBU1BPUlRJIFNQQTEfMB0GA1UEAwwWKi50cmVudGlub3RyYXNwb3J0aS5pdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKR5lr3EQh+PKKvyKVtoMzE4d2dlY9jkvT9fmkyfSSg9x6RQCAVgph69XkqIh/ODzLkaP+zURRq3DaUPhNYpb+0RWSD3GLFtzgTa0LhW++sAlKw1+nLUrdc3FzhOLYQRWQwE1TFgzXe4hpCjcCa32dDhAcPLl7TBKC8j51xpcMEeRDtVSZmgeUmaeSPtLhV0uRCRBcEI2vx+P35j1cU4Ph+YyiFrByBpKxdMIsTr5PO/9U9f3MIaPqdRRmqxZo44F4kyPfh4sWL15k78eiwUNf6NyyKPxObuK9GxQyOlr4+VpECGVJPnu4sxhNYW8YURB0t2NtPpmJSb9fqOElSro3sCAwEAAaOCBCswggQnMB8GA1UdIwQYMBaAFJRP1F2L5KTipoD+/dj5AO+jvgJXMB0GA1UdDgQWBBQiNbRb1gqRPA8QzUYB3+og+K+B1jCCASsGA1UdEQSCASIwggEeghYqLnRyZW50aW5vdHJhc3BvcnRpLml0ghR0cmVudGlub3RyYXNwb3J0aS5pdIIOdHRlc2VyY2l6aW8uaXSCFHRyZW50aW5vdHJhc3BvcnRpLmV1ghV0cmVudGlub3RyYXNwb3J0aS5jb22CFGFlcm9wb3J0b2NhcHJvbmkuY29tghNhZXJvcG9ydG9jYXByb25pLml0ggh0dHNwYS5pdIIWKi5hZXJvcG9ydG9jYXByb25pLmNvbYIVKi5hZXJvcG9ydG9jYXByb25pLml0ggoqLnR0c3BhLml0ghcqLnRyZW50aW5vdHJhc3BvcnRpLmNvbYIWKi50cmVudGlub3RyYXNwb3J0aS5ldYIQKi50dGVzZXJjaXppby5pdDA+BgNVHSAENzA1MDMGBmeBDAECAjApMCcGCCsGAQUFBwIBFhtodHRwOi8vd3d3LmRpZ2ljZXJ0LmNvbS9DUFMwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjA/BgNVHR8EODA2MDSgMqAwhi5odHRwOi8vY2RwLmdlb3RydXN0LmNvbS9HZW9UcnVzdFRMU1JTQUNBRzEuY3JsMHYGCCsGAQUFBwEBBGowaDAmBggrBgEFBQcwAYYaaHR0cDovL3N0YXR1cy5nZW90cnVzdC5jb20wPgYIKwYBBQUHMAKGMmh0dHA6Ly9jYWNlcnRzLmdlb3RydXN0LmNvbS9HZW9UcnVzdFRMU1JTQUNBRzEuY3J0MAwGA1UdEwEB/wQCMAAwggF+BgorBgEEAdZ5AgQCBIIBbgSCAWoBaAB3AE51oydcmhDDOFts1N8/Uusd8OCOG41pwLH6ZLFimjnfAAABjfVbbI8AAAQDAEgwRgIhANbA3vNXf+tqrNt5+t0Y4L0rbtbHbZl92eFqajaJv9e8AiEApoxKxb4/D6fEOHImHWK7/Ja1TEMyz/n6wdh7LE0SVmQAdQB9WR4S4XgqexxhZ3xe/fjQh1wUoE6VnrkDL9kOjC55uAAAAY31W2zMAAAEAwBGMEQCIHlW0/0ZL/rAnUWCHCzzedn9MzAN78rw2rJVU8iu3XWZAiAmJkw/Pi0nVzpxvEEOQGpF3yrcZHOiDZaXQYBZEzhAsgB2AObSMWNAd4zBEEEG13G5zsHSQPaWhIb7uocyHf0eN45QAAABjfVbbPAAAAQDAEcwRQIhALK6Feb04gCbqlnvPxSPEAh2qTPw3uGFzRlGR/X61v7IAiBlUoOAmLi7RydDaTFNLs2fS8Ca9fBjh8UFUxOWdzwn4DANBgkqhkiG9w0BAQsFAAOCAQEAJvvp14lry1ZicXt95aIb0uGgsiu+31A7fCdYRnZqQh4/UPu25lgsdBunPCDUU/UuYLO9iGFUKWLQOnxXfFkdOwIl8vm5pD4ccPoWwObm7qJ2W+UB2xMAFupEVKkMCeCx2QlFDG90LnOLWo5/a9Q/4GSqvD43ThyontM6DFR62bby/QkNBQpQbT8Dp12Q2ntGvXj1PBaK58NJ1CtHmYN+gsebmLz8vTKfIgSMfLP0XVzRN8BLINkewWlt/p1LGIsCsSdCjDiTUPkHZAE1fyH4hQIIwKxq2rz1LgtzcweS5NlZq6CO1eZw08HzForlz+7MOQvZ4yPK75/9xzG6i0v/JQ==-----END CERTIFICATE-----subject=C = IT, L = Trento, O = TRENTINO TRASPORTI SPA, CN = *.trentinotrasporti.itissuer=C = US, O = DigiCert Inc, OU = www.digicert.com, CN = GeoTrust TLS RSA CA G1---No client certificate CA names sentPeer signing digest: SHA256Peer signature type: RSA-PSSServer Temp Key: ECDH, P-256, 256 bits---SSL handshake has read 2597 bytes and written 765 bytesVerification error: unable to verify the first certificate---New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384Server public key is 2048 bitSecure Renegotiation IS NOT supportedCompression: NONEExpansion: NONENo ALPN negotiatedEarly data was not sentVerify return code: 21 (unable to verify the first certificate)------Post-Handshake New Session Ticket arrived:SSL-Session:    Protocol  : TLSv1.3    Cipher    : TLS_AES_256_GCM_SHA384    Session-ID: 2A06FA003977E5D1A518541F69469E018EFDC23F1F7F0D30868CC7D5D7D213A4    Session-ID-ctx:    Resumption PSK: 7DE74006631E0DEA5A9E4AC343AB928E4937CD285AA41A1E073720321A702CEE94D1E238900F0C702AF2B0177D921D5C    PSK identity: None    PSK identity hint: None    SRP username: None    TLS session ticket lifetime hint: 7200 (seconds)    TLS session ticket:    0000 - ed d0 f1 d8 c4 03 cf 7a-7d 8f 88 82 b6 94 8a f0   .......z}.......    0010 - 8f 67 a8 15 a5 26 0b d1-aa 10 65 10 1c bb f3 01   .g...&....e.....    0020 - 68 d6 e0 6a 00 f4 34 6b-85 0f 9e e1 d2 c7 2a db   h..j..4k......*.    0030 - 13 52 1d 8e 82 b6 13 fd-ea 36 1c 1a e8 ba 99 e4   .R.......6......    0040 - 78 65 7d d1 45 cd 5d 33-00 b1 bb 93 07 d6 af d6   xe}.E.]3........    0050 - e5 6c 3c ad 65 d0 2a fd-59 f1 92 08 d0 f2 2a c5   .l<.e.*.Y.....*.    0060 - 4b 3b 3f 96 06 1d 9d 2c-b2 3a 48 85 ac d5 71 6b   K;?....,.:H...qk    0070 - 0e e9 5a 24 56 fb b7 0c-1a 53 9b 68 b7 ec d7 b7   ..Z$V....S.h....    0080 - a4 28 18 c9 f6 fa b8 b9-80 04 8e 20 b3 d9 4c 21   .(......... ..L!    0090 - 9e 90 cf 69 55 bb 76 f9-c9 a0 66 9a ea 33 2a 97   ...iU.v...f..3*.    00a0 - eb 75 0f a2 82 13 d4 97-99 59 1a 28 1a 68 65 e0   .u.......Y.(.he.    00b0 - 26 2b cc 4d 40 94 9a 8b-b1 77 07 a1 94 41 48 b4   &+.M@....w...AH.    00c0 - 0b 14 30 91 24 67 3f c7-8f 8f a5 52 b6 cf e9 50   ..0.$g?....R...P    Start Time: 1711823680    Timeout   : 7200 (sec)    Verify return code: 21 (unable to verify the first certificate)    Extended master secret: no    Max Early Data: 0---read R BLOCK---Post-Handshake New Session Ticket arrived:SSL-Session:    Protocol  : TLSv1.3    Cipher    : TLS_AES_256_GCM_SHA384    Session-ID: 64A1770516A2AE25D3D3C178E1082FA289C774F3C61E042F425B2F9505495640    Session-ID-ctx:    Resumption PSK: A609702CC8F4E57D2114EC4CA610A2630E827A9CBA07EA3A989D1D54457EC5020EAFAAB8FE717A94EB0D62EAAD3542EF    PSK identity: None    PSK identity hint: None    SRP username: None    TLS session ticket lifetime hint: 300 (seconds)    TLS session ticket:    0000 - ed d0 f1 d8 c4 03 cf 7a-7d 8f 88 82 b6 94 8a f0   .......z}.......    0010 - 09 b4 2c a3 45 14 a7 8f-73 0a 1c 1d cc 0e 77 7e   ..,.E...s.....w~    0020 - 28 fd ac 41 29 d9 66 82-a0 f4 72 6c 12 9d 46 8b   (..A).f...rl..F.    0030 - 54 c0 d3 3a 82 39 5a 67-0f 24 16 b2 b0 50 73 6e   T..:.9Zg.$...Psn    0040 - 6a cb 01 80 d3 4c 50 b9-41 5e eb 3a 2c 9b 02 e8   j....LP.A^.:,...    0050 - 2f 6c cb c3 bc 9a 03 5e-88 6d f4 c6 47 1a 7f 95   /l.....^.m..G...    0060 - 67 49 4b e2 10 c4 45 dc-d8 9d fd e0 a4 0b 48 11   gIK...E.......H.    0070 - 87 cc d5 c7 53 33 bc 15-80 04 80 eb 9e cd e9 d2   ....S3..........    0080 - 30 67 00 cd 2c 29 30 9c-fc dd c1 35 cb e3 fb 92   0g..,)0....5....    0090 - a9 e4 5c 13 bb 56 16 c8-49 9a c2 1b ad a5 2e 71   ..\..V..I......q    00a0 - 0b f6 7f f8 6f e5 14 d3-79 0b d7 b8 fa 7a 16 06   ....o...y....z..    00b0 - 22 6e a9 28 db 16 98 cc-66 4f ab 31 ef d8 9b a9   "n.(....fO.1....    00c0 - df ff 30 56 f6 b6 24 8f-6c 71 96 51 08 28 51 ce   ..0V..$.lq.Q.(Q.    Start Time: 1711823680    Timeout   : 7200 (sec)    Verify return code: 21 (unable to verify the first certificate)    Extended master secret: no    Max Early Data: 0---read R BLOCKclosed

The website is working correctlyusing the Browser, the https works, but once I try to send a web request I get issues from the SSL certificate. Note that the website isn't mine.

To send the web request I call this function, and I use as parameter the URL of the website:

public static String SendWebRequest(String webUrl){    Log.i("NetworkUtils", "Sending web request to the server "+webUrl+"...");    HttpsURLConnection urlConnection = null;    try {        URL url = new URL(webUrl);        urlConnection = (HttpsURLConnection) url.openConnection();        urlConnection.setRequestMethod("GET");        urlConnection.setConnectTimeout(10000);        urlConnection.setReadTimeout(10000);        InputStream inputStream = new BufferedInputStream(urlConnection.getInputStream());        String formattedStream = FileUtils.ReadStream(inputStream);        inputStream.close();        return formattedStream;    } catch (Exception e) {        e.printStackTrace();    } finally    {        if (urlConnection != null)            urlConnection.disconnect();    }    return ErrorString;}

I wasn't able to figure out why I get this error everytime: "javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found." just after executing the web request.

I should mention it's just this website prompting the error, if I change URL it's working as it should, maybe there is a parameter required for connecting to the web server?

Here is the logcat showing the error:

2024-03-30 15:53:41.801 10501-10564 ForegroundService       com...ations.funiviatrento_sardagna  I  Next web request in: 52024-03-30 15:53:42.801 10501-10564 ForegroundService       com...ations.funiviatrento_sardagna  I  Next web request in: 42024-03-30 15:53:43.802 10501-10564 ForegroundService       com...ations.funiviatrento_sardagna  I  Next web request in: 32024-03-30 15:53:44.803 10501-10564 ForegroundService       com...ations.funiviatrento_sardagna  I  Next web request in: 22024-03-30 15:53:45.805 10501-10564 ForegroundService       com...ations.funiviatrento_sardagna  I  Next web request in: 12024-03-30 15:53:46.361 10501-10574 ProfileInstaller        com...ations.funiviatrento_sardagna  D  Installing profile for com.patrickcreations.funiviatrento_sardagna2024-03-30 15:53:46.806 10501-10564 ForegroundService       com...ations.funiviatrento_sardagna  I  Next web request in: 02024-03-30 15:53:46.810 10501-10564 NetworkUtils            com...ations.funiviatrento_sardagna  I  Sending web request to the server https://drive.google.com/uc?export=download&id=1LMfmAJ-SCoUsiu0n1Aps8GxPMwibqo5B...2024-03-30 15:53:47.077 10501-10564 TrafficStats            com...ations.funiviatrento_sardagna  D  tagSocket(116) with statsTag=0xffffffff, statsUid=-12024-03-30 15:53:47.615 10501-10564 TrafficStats            com...ations.funiviatrento_sardagna  D  tagSocket(117) with statsTag=0xffffffff, statsUid=-12024-03-30 15:53:48.345 10501-10564 NetworkUtils            com...ations.funiviatrento_sardagna  I  Sending web request to the server https://www.trentinotrasporti.it/viaggia-con-noi/funivia...2024-03-30 15:53:48.401 10501-10564 TrafficStats            com...ations.funiviatrento_sardagna  D  tagSocket(155) with statsTag=0xffffffff, statsUid=-12024-03-30 15:53:48.633 10501-10564 System.err              com...ations.funiviatrento_sardagna  W  javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.2024-03-30 15:53:48.634 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.SSLUtils.toSSLHandshakeException(SSLUtils.java:363)2024-03-30 15:53:48.634 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.convertException(ConscryptEngine.java:1134)2024-03-30 15:53:48.634 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.readPlaintextData(ConscryptEngine.java:1089)2024-03-30 15:53:48.634 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:876)2024-03-30 15:53:48.635 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:747)2024-03-30 15:53:48.635 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:712)2024-03-30 15:53:48.635 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:858)2024-03-30 15:53:48.635 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.-$$Nest$mprocessDataFromSocket(Unknown Source:0)2024-03-30 15:53:48.636 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngineSocket.doHandshake(ConscryptEngineSocket.java:241)2024-03-30 15:53:48.636 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:220)2024-03-30 15:53:48.636 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:196)2024-03-30 15:53:48.636 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:153)2024-03-30 15:53:48.636 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116)2024-03-30 15:53:48.637 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186)2024-03-30 15:53:48.637 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128)2024-03-30 15:53:48.637 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:97)2024-03-30 15:53:48.637 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289)2024-03-30 15:53:48.637 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232)2024-03-30 15:53:48.638 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465)2024-03-30 15:53:48.638 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)2024-03-30 15:53:48.638 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:248)2024-03-30 15:53:48.638 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211)2024-03-30 15:53:48.638 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30)2024-03-30 15:53:48.639 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.patrickcreations.funiviatrento_sardagna.NetworkUtils.SendWebRequest(NetworkUtils.java:41)2024-03-30 15:53:48.639 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.patrickcreations.funiviatrento_sardagna.ForegroundService.getCableCarApiResponse(ForegroundService.java:115)2024-03-30 15:53:48.639 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.patrickcreations.funiviatrento_sardagna.ForegroundService.getCableCarApiResponse(ForegroundService.java:102)2024-03-30 15:53:48.639 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.patrickcreations.funiviatrento_sardagna.ForegroundService.executeWebLogic(ForegroundService.java:52)2024-03-30 15:53:48.640 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.patrickcreations.funiviatrento_sardagna.ForegroundService.access$100(ForegroundService.java:13)2024-03-30 15:53:48.640 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.patrickcreations.funiviatrento_sardagna.ForegroundService$RunnableClass.run(ForegroundService.java:42)2024-03-30 15:53:48.640 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at java.lang.Thread.run(Thread.java:1012)2024-03-30 15:53:48.644 10501-10564 System.err              com...ations.funiviatrento_sardagna  W  Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.2024-03-30 15:53:48.644 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:654)2024-03-30 15:53:48.644 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:503)2024-03-30 15:53:48.644 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:423)2024-03-30 15:53:48.644 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:351)2024-03-30 15:53:48.645 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94)2024-03-30 15:53:48.645 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:90)2024-03-30 15:53:48.645 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngineSocket$2.checkServerTrusted(ConscryptEngineSocket.java:163)2024-03-30 15:53:48.645 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:256)2024-03-30 15:53:48.645 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.verifyCertificateChain(ConscryptEngine.java:1638)2024-03-30 15:53:48.645 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.NativeCrypto.ENGINE_SSL_read_direct(Native Method)2024-03-30 15:53:48.646 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.NativeSsl.readDirectByteBuffer(NativeSsl.java:569)2024-03-30 15:53:48.646 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.readPlaintextDataDirect(ConscryptEngine.java:1095)2024-03-30 15:53:48.646 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      at com.android.org.conscrypt.ConscryptEngine.readPlaintextData(ConscryptEngine.java:1079)2024-03-30 15:53:48.646 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      ... 27 more2024-03-30 15:53:48.648 10501-10564 System.err              com...ations.funiviatrento_sardagna  W  Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.2024-03-30 15:53:48.648 10501-10564 System.err              com...ations.funiviatrento_sardagna  W      ... 40 more

I have tried the setHostnameVerifier and setSSLSocketFactory methods to see if that was the problem, but nothing changed.I have also tried the setDoInput and setDoOutput methods but the problem still persists.


Viewing all articles
Browse latest Browse all 1547

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>