You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/28 19:46:42 UTC

[GitHub] [cordova-android] faugusztin commented on issue #1112: Certificate validation failed with user's installed trusted CA certificates

faugusztin commented on issue #1112:
URL: https://github.com/apache/cordova-android/issues/1112#issuecomment-718168272


   Certificates for your application needs to be configured using the network config file, documentation is at https://developer.android.com/training/articles/security-config
   
   For your use case, you want to add a network_security_config.xml file to res/xml folder:
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <network-security-config>  
         <base-config>  
               <trust-anchors>  
                   <!-- Trust preinstalled CAs -->  
                   <certificates src="system" />  
                   <!-- Additionally trust user added CAs -->  
                   <certificates src="user" />  
              </trust-anchors>  
         </base-config>  
    </network-security-config>
   ```
   By default, apps trust only preinstalled CA's exclusively.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org