nibbo Active Member Licensed User Longtime User Jun 15, 2015 #1 Not really a B4A problem as such. My app uses a web-service to retrieve and upload data to a central database. This works most of the time but on the odd occasion the http job gets a certificate error. The certificates are OK and other users with other tablets can continue to use the service while one user is stuck. It is not always the same user / tablet and they do suddenly start working again for no apparent reason. I have checked the date and time on the tablet as I know this can cause certificate errors but it is correct. Is there a way to 'ignore' the certificate error in the http job like you can if you log into a website and get the option to continue in a browser? I know this is not a good idea but until I find out why it happens I can't leave the users out there with a dead app. Or, if anyone has experienced other causes of this error I would love to know. Many thanks in advance
Not really a B4A problem as such. My app uses a web-service to retrieve and upload data to a central database. This works most of the time but on the odd occasion the http job gets a certificate error. The certificates are OK and other users with other tablets can continue to use the service while one user is stuck. It is not always the same user / tablet and they do suddenly start working again for no apparent reason. I have checked the date and time on the tablet as I know this can cause certificate errors but it is correct. Is there a way to 'ignore' the certificate error in the http job like you can if you log into a website and get the option to continue in a browser? I know this is not a good idea but until I find out why it happens I can't leave the users out there with a dead app. Or, if anyone has experienced other causes of this error I would love to know. Many thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2015 #2 It is possible to accept all certificates. Use HttpUtils2 source code instead of the library and change the code as described here: https://www.b4x.com/android/forum/t...re-now-even-simpler.18992/page-12#post-181702 (simple change). Upvote 0
It is possible to accept all certificates. Use HttpUtils2 source code instead of the library and change the code as described here: https://www.b4x.com/android/forum/t...re-now-even-simpler.18992/page-12#post-181702 (simple change).
nibbo Active Member Licensed User Longtime User Jun 15, 2015 #3 Thanks Erel, A couple of quick questions though... Will this make the connection to the web service insecure or will there still be some level of encryption? Where can I find the latest version of the source? The only one I can find does not seem to match the link. Upvote 0
Thanks Erel, A couple of quick questions though... Will this make the connection to the web service insecure or will there still be some level of encryption? Where can I find the latest version of the source? The only one I can find does not seem to match the link.
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2015 #4 The data will still be encrypted. However as it accepts all certificates it will be open to man in the middle attacks. The latest source code is here: https://www.b4x.com/android/forum/threads/18992/#content Upvote 0
The data will still be encrypted. However as it accepts all certificates it will be open to man in the middle attacks. The latest source code is here: https://www.b4x.com/android/forum/threads/18992/#content
nibbo Active Member Licensed User Longtime User Jun 15, 2015 #5 Hi Erel. I have this version working with the amended initialize method now. Many thanks for your assistance. Upvote 0
Hi Erel. I have this version working with the amended initialize method now. Many thanks for your assistance.