将SSL证书导入Eclipse [英] Importing SSL Certificate into Eclipse

查看:199
本文介绍了将SSL证书导入Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

您可能想要导入一个JRE的信任证书中的伪造SSL证书,以避免不正当的证书问题。不是吗?



正如Jon所说,您可以使用 keytool

  keytool 
-import
-alias< provide_an_alias>
-file< certificate_file>
-keystore< your_path_to_jre> / lib / security / cacerts

使用changeit作为询问时的默认密码(Brian Clozel)。确保在您的服务器上使用此运行时或启动配置。



关于


How do you import an SSL certificate created by java into a project in Eclipse?

解决方案

Probably you want to import a "fake" SSL cert in JRE's trustcacerts for avoiding not-a-valid-certificate issues. Isn't it?

As Jon said, you can do the job with keytool:

keytool
    -import
    -alias <provide_an_alias>
    -file <certificate_file>
    -keystore <your_path_to_jre>/lib/security/cacerts

Use "changeit" as default password when asked (thx. Brian Clozel). Ensure to use this runtime at your server or launch configuration.

Regards

这篇关于将SSL证书导入Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆