SSL certificates in codename one

耗尽温柔 提交于 2019-12-22 18:39:38

问题


I want to use SSl certificates in codename one.Currently I am using below code for connecting to server

ConnectionRequest req = new ConnectionRequest();
req.setUrl("http:/something");

But I want to use https instead of http.I want to import customize SSL certificates and want to use it in my app.

How to import and use SSL certificates ?


回答1:


You should just change this to HTTPS but you can't use a custom (invalid) SSL certificate. Your certificate must be valid and must be from a valid certificate authority for it to work.

If this is just for debugging you can add your debugging certificate to the device in the device settings which usually allows you to customize the root certificates.



来源:https://stackoverflow.com/questions/45795869/ssl-certificates-in-codename-one

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!