Andy模拟器上的Charles Proxy问题(Failure:SSLHandshake:不支持的curveId:29)

时间:2019-08-13 14:31:00

标签: android ssl charles-proxy andyroid

我试图通过监视Andy模拟器上的出站/入站HTTP流量来在应用程序(Android)上进行调试会话。对于SSL流量,我收到以下错误: Failure: SSLHandshake: Unsupported curveId: 29

过去我没有使用该应用程序收到上述错误。你们能告诉我这个错误的含义以及如何解决吗?应用程序中是否存在导致SSL错误的问题?谢谢

2 个答案:

答案 0 :(得分:0)

请参阅其文档https://www.charlesproxy.com/documentation/using-charles/ssl-certificates

中的Android部分。

您需要为Android N和更高版本的设备添加网络安全配置文件。

答案 1 :(得分:0)

在Android N +中,我们必须在network_security_config.xmlmanifest.xml的应用中添加证书,以拦截HTTPS流量。

network_security_config.xml

<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>

manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
<application android:networkSecurityConfig="@xml/network_security_config" ... >
...
</application>
</manifest>

以下是快速教程:https://docs.proxyman.io/debug-devices/android-device