I want to use https:// over LocalHost tomcat (vista) but failed, I used

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leonidas Savvides
    New Member
    • Aug 2010
    • 17

    #1

    I want to use https:// over LocalHost tomcat (vista) but failed, I used

    I want to use https:// over LocalHost tomcat (vista) but failed, I used
    keytool -genkey -alias tomcat -keyalg RSA -keystore C:/Users/User/.keystore -validity 365
    Is it the correct folder tomcat looks by default(C:\User s\User\)? where to look at in Tomcat documentation?
    C:\Program Files\Apache Software Foundation\Apac he Tomcat 6.0.18\bin>
    I use port: 443, I also tried 8443.
    https://localhost/webhomecover8/welcome.jsp simple JSP
    This implies that https://localhost/ will show tomcat manager? please note this appers "Internet Explorer cannot display the webpage"...in my screen for https://localhost/.

    may move keystore file, or must recreated in the new folder?
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    You should look on your server in your tomcat logs for the error message and list it here! That helps to determine the error. Your internet-explorer-output only says that it did not get back a response back from the server. That doesn't help to determine the error.
    Maybe the key/port is correct, but something else is wrong? Like read/write permission or location of welcome.jsp? Or Https-configuration inside server.xml?
    Without listing this info here nobody can analyse the error.

    Comment

    • Leonidas Savvides
      New Member
      • Aug 2010
      • 17

      #3
      C:/Users/User/.keystore
      this is default location tomcat would look in vista (for keystore file) or there is else ...?

      Comment

      • chaarmann
        Recognized Expert Contributor
        • Nov 2007
        • 785

        #4
        By default, Tomcat expects the keystore file to be named .keystore in the user home directory. If this doesn't work, then either the directory given above is not your home directory, or there is another directory entry given in server.xml (see entry
        keystoreFile="p ath/to/my/.keystore").

        I don't have Vista. I have Ubuntu, Windows XP, Windows 2000 and Windows98 (I had so much problems with Vista that I avoid it like hell) and all I can say that my user directory is not located under "C:/Users/User"!

        Comment

        • Leonidas Savvides
          New Member
          • Aug 2010
          • 17

          #5
          I search text of server.xml for word "keystore" but found nothing...well?

          Comment

          • Leonidas Savvides
            New Member
            • Aug 2010
            • 17

            #6
            Solved, found:
            I use:
            Code:
               <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"  
            	maxThreads="150" scheme="https" secure="true"  
            	clientAuth="false" sslProtocol="TLS"  
            	keystoreFile="C:/Users/.keystore"  
            	keystorePass="changeit"/>
            also:
            Code:
            keystoreFile="C:/User/User/.keystore"
            this must be
            Code:
            keystoreFile="C:/User[b]s[/b]/User/.keystore"
            and also: upon creation of cert password start/end must match....
            Last edited by Frinavale; Aug 31 '10, 06:50 PM. Reason: Please post code in [code] ... [/code] tags in the future. Added code tags.

            Comment

            Working...