Configure SSL on Jetty

后端 未结 6 1086
傲寒
傲寒 2020-12-04 10:41

I am trying to configure SSL on my Jetty.

I read this: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL and created a key store.

Then, I jumped d

6条回答
  •  臣服心动
    2020-12-04 10:44

    When trying on Windows with Jetty as Maven plugin the following steps can help:

    pom.xml

    
        org.mortbay.jetty
        jetty-maven-plugin
        8.1.11.v20130520
        
            10
            
                /yourappcontext
            
            
                
                    9090
                    1
                
                
                    9443
                    src/test/resources/keystore
                    123456
                    123456
                
            
        
    
    

    Generate key/certificate using the JDK tool keytool:

    keytool -keystore keystore -alias jetty -genkey -keyalg RSA
    

    This command will generate a file keystore which we need to put at the following (or what ever you like until it is configured in the keystore element) path src/test/resources/keystore.

提交回复
热议问题