-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with POCO HTTPS request on Android app #4698
Comments
try using |
That works, but I think it's not the solution, I don't want to skip security. ;( |
You are not skipping security: if you look The verification is failing because you cannot verify the certificate the server sent to you to check if it's a valid certificate. the other thing you can do is to create a client context that has the "caLocation" set with a PEM file containing all valid certificate authority. For example you can, for example, this |
For
What do you mean by that You mean handling it this way:
Handling it by Or you meant something else ? |
Context::VERIFY_STRICT and VERIFY_RELAXED and VERIFY_ONCE for client use it's the same, so use what I suggested with one of that, for example VERIFY_RELAXED |
I'm trying to use POCO https requests on Android app. I'm using poco 1.10.1 (I built poco with BoringSSL instead of OpenSSL) and my setup for SSL looks like this:
after https request I'm still getting error error:
SSL Exception: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED, code: 0, what: SSL Exception
Anyone has idea what else should be configured to make it work ?
The text was updated successfully, but these errors were encountered: