在Jasper上配置SSL

时间:2014-07-17 08:31:39

标签: ssl jasperserver

我想配置我的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时,

password-prompt

我已尝试过用户名密码的夫妻:

  • Tomcat的的changeit
  • mydesktoplogin-mydesktoppassword

但这些都不正确 我不知道我应该使用什么用户名/密码?

有人有同样的问题吗?解决方案是什么?

1 个答案:

答案 0 :(得分:0)

基于tomcat-7.0-ssl-howto

我必须更改协议值

<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" .../>

它有效!