HowTo use https / ssl with Maven/Mortbay Jetty Plugin?

后端 未结 3 1472
终归单人心
终归单人心 2020-12-13 03:06

I would like to use ssl / https as described in

http://docs.codehaus.org/display/JETTY/How+to+configure+SSL

using jetty-maven-plugin, but I don\'t know how t

3条回答
  •  庸人自扰
    2020-12-13 03:47

    In case you are get this error using Pascal's solution:-

    Could not find goal 'genkey' in plugin org.codehaus.mojo:keytool-maven-plugin:1.3
    
    1. Use 'generateKeyPair' as the goal. (genKey is deprecated I believe. )
    2. Add plugin version.

    The plugin definition should look like :-

           
                org.codehaus.mojo
                keytool-maven-plugin
                1.3
                
                    
                        generate-resources
                        clean
                        
                            clean
                        
                    
                    
                        generate-resources
                        genkey
                        
                            generateKeyPair
                        
                    
                
                
                    ${project.build.directory}/jetty-ssl.keystore
                    cn=my.hostname.tld
                    jetty6
                    jetty6
                    jetty6
                    RSA
                
            
    

提交回复
热议问题