在Jetty的运行时设置ssl密钥库 [英] setting ssl keystore at runtime in Jetty

查看:218
本文介绍了在Jetty的运行时设置ssl密钥库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在运行时更改密钥库?目前我在设置SSL之前,我做一个server.start() -

Is it possible to change keystore at runtime? Currently I am setting up SSL before I do a server.start() -

sslContextFactory.setTrustStore(ks);
sslContextFactory.setTrustStorePassword(TRUSTSTORE_PASS);
sslContextFactory.setKeyStorePassword(KEYSTORE_PASS); 
ServerConnector https = new ServerConnector(server, sslContextFactory);

server.start()

我想做的是创建一个证书在运行时使用它。

What I would like to do is create a certificate at runtime and use it. Basically I am creating a tool like Fiddler which creates certificates on the fly.

推荐答案

在Jetty邮件列表中发布这个问题之后,我将创建一个类似Fiddler的工具得到的答复是不是真正可行的

After posting this question in Jetty mailing list, I got response that is it not really feasible

这篇关于在Jetty的运行时设置ssl密钥库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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