mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 08:35:53 +03:00
[GH-ISSUE #1225] SSL Proxying is failing in Android with java.security.cert.CertPathValidatorException: Trust anchor for certification path not found #1222
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ricardopereira on GitHub (May 7, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1225
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version?
Proxyman 3.4.0 (30400)
HTTP/HTTPS Proxy is overridden by Proxy Helper Tool.
Proxy Helper Tool: ✅ Installed:
com.proxyman.NSProxy.HelperTool(1.3.0).Proxyman Certificate trusted in Keychain Access:
macOS Version?
mac 12.3.1 (21E258) - MacBook Pro M1
Steps to reproduce
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found..Proxyman displays an item with status
Internal Errorin the URL list with response:Expected behavior
Request succeed and be able to see the HTTPS response in Proxyman.
@NghiaTranUIT commented on GitHub (May 9, 2022):
Hey @ricardopereira it seems that Android 12 has changed how we config the self-signed certificate.
Please check out this doc: https://developer.android.com/training/articles/security-config
res/xml/network_security_config.xml. Make sure you replace theexample.comwith the domain that you'd like to intercept.res/raw/my_ca. You can export the certificate in Certificate Menu -> Export -> Root Certificate as PEM.Let me know if it works 👍
@NghiaTranUIT commented on GitHub (May 9, 2022):
@ricardopereira I've tested Proxyman with Emulator API 32 and it works fine.
Files
Screenshot
@NghiaTranUIT commented on GitHub (May 9, 2022):
Here is the output when using the Emulator Script on Proxyman. The certificate is properly installed.
If you don't mind, please open your Emulator and check if you can see the Proxyman CA in Setting app -> Security -> Encryption & Credentials -> Trusted Certificate -> User Tab
@ricardopereira commented on GitHub (May 9, 2022):
@NghiaTranUIT Thank you for your replies!
Yes, the certificate is present in the user tab and trusted:
Still not working. I will export the certificate and add it to the project and see if it helps.
@ricardopereira commented on GitHub (May 9, 2022):
@NghiaTranUIT I works! I didn't export the certificate. I removed the existing certificate from the phone and run the script again because I noticed the issue time was not right. Now it has the right certificate 🙌🏼. Thanks for your help.