kittoku / Open-SSTP-Client

Open SSTP Client for Android
MIT License
402 stars 104 forks source link

Huawei without GMS #43

Closed Indjov closed 3 years ago

Indjov commented 3 years ago

Hello, I have a Mate 40 pro and i want to use this app on my huawei but i'm without GMS. Whether you are considering implementing it for HMS as well?

kittoku commented 3 years ago

Now I don't have any plan to publish my app in any stores except Google Play.

I uploaded the APK of the latest commit. I hope it will work for you.

Indjov commented 3 years ago

[15:34:49] Establish VPN connection [15:34:49] An unexpected event occurred: SSLPeerUnverifiedException No peer certificate com.android.org.conscrypt.SSLNullSession.getPeerCertificates(SSLNullSession.java:122) com.android.org.conscrypt.ExternalSession.getPeerCertificates(ExternalSession.java:106) com.android.org.conscrypt.Java7ExtendedSSLSession.getPeerCertificates(Java7ExtendedSSLSession.java:129) com.android.org.conscrypt.Java7ExtendedSSLSession.getPeerCertificates(Java7ExtendedSSLSession.java:31) kittoku.osc.layer.SslTerminal.createSocket(SslTerminal.kt:90) kittoku.osc.layer.SslTerminal.initializeSocket$app_release(SslTerminal.kt:123) kittoku.osc.layer.SstpClient.proceed$app_release(SstpClietnt.kt:166) kittoku.osc.ControlClient$launchJobIncoming$1.invokeSuspend(ControlClient.kt:208) kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:241) kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594) kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:740) [15:34:49] Terminate VPN connection

kittoku commented 3 years ago

Did you install your server's certificate in your device?

Indjov commented 3 years ago

No, the server where is the the VPN it's corporate, so i don't have a access.

kittoku commented 3 years ago

The server's certificate must be accessible, otherwise you cannot establish SSL connection for VPN. Please go ask your manager.

BTW, if your server's certificate are verified by famous CAs, there is another problem causing the error. I suggest you check if you can establish VPN connection from a Windows-built-in client without installing the certificate.