我想配置我的JasperServer通过SSL访问 我按照apache-ssl-howto
的步骤进行了操作C:\jdk1.5.0_09\bin>keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password: changeit
What is your first and last name?
[Unknown]: teamcakes
What is the name of your organizational unit?
[Unknown]:
What is the name of your organization?
[Unknown]:
What is the name of your City or Locality?
[Unknown]:
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]:
Is CN=teamcakes, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
[no]: yes
Enter key password for <tomcat>
(RETURN if same as keystore password):
C:\jdk1.5.0_09\bin>
我还取消注释了$ CATALINA_BASE / conf / server.xml
中的SSL部分<Connector
protocol="HTTP/1.1"
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="${user.home}/.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS"/>
但是当我在浏览器上打开SSL URL时,
我已尝试过用户名密码的夫妻:
但这些都不正确 我不知道我应该使用什么用户名/密码?
有人有同样的问题吗?解决方案是什么?
答案 0 :(得分:0)
我必须更改协议值
从
<Connector protocol="HTTP/1.1" port=8443 ../>
到
<!-- Define a blocking Java SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector protocol="org.apache.coyote.http11.Http11Protocol"
port="8443" .../>
它有效!