How to import a SSL certificate file with SWT Browser

血红的双手。 提交于 2019-12-13 17:35:43

问题


With SWT Browser, is there any way to import a SSL certificate file into Java and make it work with SWT Browser?

With Firefox, you can import it by Edit-Preferences-Advanced-Encryption-View Certificates-Import command, but since Mozilla doesn't share profile with each other, we are not able to reuse that.

Is there any way? Any advices? Thanks in advance!


回答1:


SWT Browser is just a component to display web pages using one of the engines. There is no extra-compatibility.

Certificates are managed differently on each platform & browser. There is no single-crossplatform interface to import certs. You have to find/develop a way to import certificate using other tools than SWT Browser component.

For example on Windows, you have to look how to import certificate on Windows using Java, probably use some command-line tools like mmc.

In other words you have to find special browser-based interface to import certs.



来源:https://stackoverflow.com/questions/3776875/how-to-import-a-ssl-certificate-file-with-swt-browser

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