Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I support https? #477

Open
otldan opened this issue Feb 1, 2023 · 7 comments
Open

How do I support https? #477

otldan opened this issue Feb 1, 2023 · 7 comments

Comments

@otldan
Copy link

otldan commented Feb 1, 2023

How do I support https? How to set it?

@FutureWL
Copy link

FutureWL commented Mar 12, 2023

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

@wang-neng
Copy link

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

@tomyZhou
Copy link

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

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

@yanzhenjie yanzhenjie changed the title 是否支持https How do I support https? Apr 15, 2024
@yanzhenjie yanzhenjie pinned this issue Apr 15, 2024
@plancha2002
Copy link

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).

@wang-neng
Copy link

wang-neng commented Apr 21, 2024

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

@plancha2002
Copy link

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.

@wang-neng
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants