0

This error shows up when I try to get data from the URI: exception details I did some digging on the web and I created a folder in resources called XML with a file networking_security_config.xml and I added the certificate in the .pem extension on another folder called raw, I used OpenSSL to convert the certificate from .cer to .pemcertificate added Then I went to the androidManifest.xml, in the application block I added the networkSecurityConfig.androidManifest.xml However, the error is still the same! Here is the main code! I need your help guys enter image description here

Cleptus
  • 3,446
  • 4
  • 28
  • 34
  • Look at your first link, You are getting one input stream. Why do you have two get input streams at bottom of error? – jdweng Nov 03 '21 at 09:50
  • 1
    Please, questions are far easier to read if the text content (mainly code) is included in them as text instead of images. – Cleptus Nov 03 '21 at 09:52
  • Not sure if in android is the same, but you could check `CertificateValidationCallback`. For example this related question [Allowing Untrusted SSL Certificates with HttpClient](https://stackoverflow.com/questions/12553277/allowing-untrusted-ssl-certificates-with-httpclient/54707165) – Cleptus Nov 03 '21 at 09:53
  • Please provide enough code so others can better understand or reproduce the problem. – Community Nov 03 '21 at 14:30

0 Answers0