1

我必须设计一个 localhost 应用程序,其他项目中的一个代码返回一个 url,如下所示..

http://localhost:8080/MyProject?id= "somevalue"

现在我实现https的任务(另一个项目生成的url是硬编码的。所以我们也可以拥有https url....因为另一个项目也是我的项目之一,但是在任务结束之后将返回带有 id 作为参数的 url)

所以让我们有类型的 url

https://localhost:8443/MyProject?id= "somevalue"

我的设计内容如下。

1. i have to use https 
2.i have to use RSA bit length of 512 bits
3.i have to be able to read the value id with request.getParameter()
4.How https coding will be different from http in servlets..
can we use the same coding of http in https..

我不需要复杂的实现。我需要的只是它必须出现 https 并且在 servlet 实现中我想使用 http 编码......

可能吗..

谢谢..

4

1 回答 1

3

如果您从非 SSL 迁移到 SSL,您的代码不应受到影响,假设您使用的是 tomcat,请阅读文档以配置SSL

于 2012-04-12T06:21:47.693 回答