braintree / braintree-android-drop-in

Braintree Drop-In SDK for Android
https://developers.braintreepayments.com/guides/drop-in/android/v2
MIT License
124 stars 79 forks source link

Sandbox certificate issues. #312

Closed buticm closed 2 years ago

buticm commented 2 years ago

General information

Issue description

Demo app fails when trying to add new credit card 4111 1111 1111 1111. The error message is java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

It seems that the issue with the certificate that is served from the sandbox server payments.sandbox.braintree-api.com. The connection from the browser to that server works fine and shows no issues with certificate. However, the connection from the app fails.

Maybe the issue can be resolved by adding the certificate to trusted certificates of the app. However, it would be preferable if the certificate for that server is updated on the server side to include most up to date CA root certificates.

Note, that the issue is intermittent. It's possible that only one/few of the servers serve incorrect certificate.

sshropshire commented 2 years ago

This should now be resolved. We had an SSL issue that temporarily affected our sandbox environment last week.