AndServer icon indicating copy to clipboard operation
AndServer copied to clipboard

How do I support https?

Open otldan opened this issue 2 years ago • 7 comments

How do I support https? How to set it?

otldan avatar Feb 01 '23 06:02 otldan

研究了两天,参考一下 image image image image //取得BKS类型的本地密钥库实例,这里特别注意:手机只支持BKS密钥库,不支持Java默认的JKS密钥库 image 参考交流

FutureWL avatar Mar 12 '23 02:03 FutureWL

你用的是那份软件 生成了 bks 密钥库呢? 看截图 应该不是 keytools这个工具吧。

wang-neng avatar Mar 28 '23 14:03 wang-neng

你用的是那份软件 生成了 bks 密钥库呢? 看截图 应该不是 keytools这个工具吧。

http://keystore-explorer.org/downloads.html 这个工具

tomyZhou avatar Apr 26 '23 02:04 tomyZhou

Has anyone been able to implement HTTPS correctly? My certificate is fine, it loads and reads correctly. I think I have some bug when implementing it on the server, when I apply the sslContext, I keep trying to connect infinitely (until I turn off the server) and if I remove the sslContext works perfectly (http).

plancha2002 avatar Apr 20 '24 09:04 plancha2002

Has anyone been able to implement HTTPS correctly? My certificate is fine, it loads and reads correctly. I think I have some bug when implementing it on the server, when I apply the sslContext, I keep trying to connect infinitely (until I turn off the server) and if I remove the sslContext works perfectly (http).

You can provides more details information . For example , logcat 、implement code、operation

wang-neng avatar Apr 21 '24 03:04 wang-neng

I was able to implement it. My problem was in the sslSocketInitializer(). When I called it, (guided by desperation) I copied the example above, and could not get it to work, finally I removed the arguments and put only sslSocketInitializer(socket -> {}) and it worked, it only gave me the warning that the certificate is autogenerated (which is the case) but I consider it solved.

plancha2002 avatar Apr 21 '24 11:04 plancha2002

I was able to implement it. My problem was in the sslSocketInitializer(). When I called it, (guided by desperation) I copied the example above, and could not get it to work, finally I removed the arguments and put only sslSocketInitializer(socket -> {}) and it worked, it only gave me the warning that the certificate is autogenerated (which is the case) but I consider it solved.

maybe you already solve this problem , I think so

wang-neng avatar Apr 21 '24 13:04 wang-neng