locked
WebView SSL Problems RRS feed

  • Question

  • User385594 posted

    Hi,

    I have problems when I want load this web https://avanzsistemas.com in a WebView. I want load the website although have ssl problems.

    The device is iOS 13.3.

    I try fix this, setting in the info.plist:

    <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>

    But doesn't work

    Any solution?

    Friday, October 9, 2020 1:58 AM

All replies

  • User369979 posted

    This is because the website used an invalid certificate. Open it with your PC browser the issue will be there too: Try to contact the support of the website. Let them use a new valid certificate.

    Friday, October 9, 2020 5:40 AM
  • User385594 posted

    I know the site used an invalid certificate. I wanna open it in the same way, any way to do that?

    Friday, October 9, 2020 5:20 PM
  • User369979 posted

    Update the certificate on the website side.

    Saturday, October 10, 2020 1:38 AM
  • User385594 posted

    No, i can't do that. I want resolve the problem from the App.

    Saturday, October 10, 2020 5:27 PM
  • User369979 posted

    This has been recognized as an unsafe link. We couldn't skip this from the client-side.

    Monday, October 12, 2020 7:44 AM
  • User385594 posted

    I'm in develop environment (with local port), for the api's issues, I need use https in develop environment so I'm work with a self-signed certificate

    I need open in the app the url with auto-signed certificate for to continue developing

    Monday, October 12, 2020 3:06 PM
  • User129559 posted

    In renderers for WebViews, you can override the WebViewClient or Delegate depending on the platform and ignore SSL errors in there if you need to.

    Monday, October 12, 2020 9:56 PM
  • User369979 posted

    If you do want to consume a self-signed certificate, take a look at this post: https://stackoverflow.com/questions/47664218/trust-a-self-signed-certificate-using-httpclient It has a completed answer about how to trust it on iOS.

    Tuesday, October 13, 2020 2:42 AM