justcoding121 / titanium-web-proxy

A cross-platform asynchronous HTTP(S) proxy server in C#.
MIT License
1.93k stars 618 forks source link

Issue with Xamarin android when using SSL decrypted #887

Open 9WW7XxHy opened 3 years ago

9WW7XxHy commented 3 years ago

image

I had install CA Bundle certificate and trust it . but it only working fine with "non SSL Decrypted" . when i try enable "decrypted", it will be error response someone help me, please Proxy running ON: Android machine ,Visual Studio 2019 and Xamarin latest

9WW7XxHy commented 3 years ago

Logs:

Listening on 'ExplicitProxyEndPoint' endpoint at Ip 0.0.0.0 and port: 8000 Listening on 'TransparentProxyEndPoint' endpoint at Ip 0.0.0.0 and port: 8001 Generic exception in ATC: Failed to make system trust root certificate for My\LocalMachine store location. You may need admin rights. Generic exception in ATC: Failed to make system trust root certificate for Root\LocalMachine store location. You may need admin rights. Thread started: #8 Thread started: #9 Thread started: #10 Thread started: #11 Thread started: #12 Thread started: #13 Thread started: #14 [RenderThread] type=1400 audit(0.0:6521): avc: denied { search } for name="21377_44" dev="debugfs" ino=141150 scontext=u:r:untrusted_app:s0:c166,c256,c512,c768 tcontext=u:object_r:debugfs_mali:s0 tclass=dir permissive=1 app=com.companyname.app4 [mali_winsys] EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface , EGLBoolean) returns 0x3000, [1440x2560]-format:1 [Gralloc3] mapper 3.x is not supported [RenderThread] type=1400 audit(0.0:6522): avc: denied { search } for name="clients" dev="debugfs" ino=4239 scontext=u:r:untrusted_app:s0:c166,c256,c512,c768 tcontext=u:object_r:debugfs_ion:s0 tclass=dir permissive=1 app=com.companyname.app4 [libEGL] EGLNativeWindowType 0x7207f5e3d0 disconnect failed [ompanyname.app] Explicit concurrent copying GC freed 267(41KB) AllocSpace objects, 0(0B) LOS objects, 78% free, 2239KB/10MB, paused 92us total 27.800ms Error occured whilst handling session request: https://github.com/mono/mono/issues/12880** The thread 0x9 has exited with code 0 (0x0). Thread finished: #9 Thread finished: #2 Thread started: #15 The thread 0x2 has exited with code 0 (0x0).

9WW7XxHy commented 3 years ago

i had set: proxyServer.CertificateManager.CertificateEngine = CertificateEngine.BouncyCastle; but it still doesn't work

leleji commented 2 years ago

For Android 7 and above, you need to install the certificate to the system directory

9WW7XxHy commented 2 years ago

For Android 7 and above, you need to install the certificate to the system directory

I had install certificate to system directory and reboot but it not working

leleji commented 2 years ago

Android 7及以上,需要将证书安装到系统目录

我已将证书安装到系统目录并重新启动,但它不起作用

用管理员权限启动看看