https://issues.apache.org/bugzilla/show_bug.cgi?id=53281

--- Comment #10 from Christopher Schultz <ch...@christopherschultz.net> ---
Note that I tested this with Tomcat 8 trunk.

$ keytool -genkey -alias tomcat  -keystore ~/.keystore -keyalg RSA -keysize
4096
Enter keystore password:  
Re-enter new password: 
What is your first and last name?
  [Unknown]:  Christopher Schultz
What is the name of your organizational unit?
  [Unknown]:  Testing
What is the name of your organization?
  [Unknown]:  Snake Oil, Ltd.
What is the name of your City or Locality?
  [Unknown]:  Washington
What is the name of your State or Province?
  [Unknown]:  District of Columbia
What is the two-letter country code for this unit?
  [Unknown]:  US
Is CN=Christopher Schultz, OU=Testing, O="Snake Oil, Ltd.", L=Washington,
ST=District of Columbia, C=US correct?
  [no]:  yes

Enter key password for <tomcat>
    (RETURN if same as keystore password):  [left blank]

I Modified your <Connector> slightly to match the key alias from the Tomcat
documentation:

<Connector port="9876" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keyAlias="tomcat" keystorePass="mypass"
               clientAuth="false" sslProtocol="TLS" />

$ curl -f http://localhost:9876
curl: (52) Empty reply from server

$ telnet localhost 9876
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET /
Connection closed by foreign host.

$ telnet localhost 9876
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
Connection closed by foreign host.

Tomcat is behaving as expected, here. I can test against Tomcat 6 to help
corroborate, but I want to make sure that I have my process correct. To those
who have reported problems, please verify that my steps-to-reproduce are
correct.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to