我想从Javascript客户端连接到使用SSL的Java Restful Web服务。 我可以编写独立的 Java 客户端,连接到密钥库并导入证书并可以成功连接。 我怎样才能使用Javascript,XMLHttpRequest实现同样的事情。 提前感谢您的任何指示。
我不完全确定我是否理解你的问题。 但是,要使用 JavaScript 对服务器发出 SSL 异步请求,您需要进行的唯一更改是在 RESTful 目标 URL 中使用 https 而不是 http。