• Maven Jetty SSL配置


     1 <plugin>
     2                 <groupId>org.codehaus.mojo</groupId>
     3                 <artifactId>keytool-maven-plugin</artifactId>
     4                 <version>1.4</version>
     5                 <executions>
     6                     <execution>
     7                         <phase>generate-resources</phase>
     8                         <id>clean</id>
     9                         <goals>
    10                             <goal>clean</goal>
    11                         </goals>
    12                     </execution>
    13                     <execution>
    14                         <phase>generate-resources</phase>
    15                         <id>generateKeyPair</id>
    16                         <goals>
    17                             <goal>generateKeyPair</goal>
    18                         </goals>
    19                     </execution>
    20                 </executions>
    21                 <configuration>
    22                     <keystore>${project.build.directory}/jetty-ssl.keystore</keystore>
    23                     <dname>cn=localhost</dname>
    24                     <keypass>test</keypass>
    25                     <storepass>test</storepass>
    26                     <alias>test</alias>
    27                     <keyalg>RSA</keyalg>
    28                 </configuration>
    29             </plugin>
    30             <plugin>
    31                 <groupId>org.mortbay.jetty</groupId>
    32                 <artifactId>jetty-maven-plugin</artifactId>
    33                 <version>8.1.0.RC5</version>
    34                 <configuration>
    35                     <webAppConfig>
    36                         <contextPath>/test</contextPath>
    37                         <defaultsDescriptor>src/test/resources/webdefault.xml</defaultsDescriptor>
    38                     </webAppConfig>
    39                     <stopKey/>
    40                     <stopPort/>
    41                     <connectors>
    42                         <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
    43                             <port>8080</port>
    44                         </connector>
    45                         <connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector">
    46                             <port>8443</port>
    47                             <maxIdleTime>60000</maxIdleTime>
    48                             <keystore>${project.build.directory}/jetty-ssl.keystore</keystore>
    49                             <password>test</password>
    50                             <keyPassword>test</keyPassword>
    51                         </connector>
    52                     </connectors>
    53                 </configuration>
    54             </plugin>
  • 相关阅读:
    beginAppearanceTransition
    runtime基础
    UIStoryboard跳转界面
    xcode所有版本下载地址
    UIImage添加滤镜
    苹果copy等其他的英文改成中文
    UITextField输入中文
    keyboard添加down按钮
    2020-07-08:mysql只有一个表a,什么情况下会造成死锁,解决办法是什么?
    2020-07-05:tcp和udp的区别和应用场景。如何实现断点续传?
  • 原文地址:https://www.cnblogs.com/zhuyoufeng/p/3707448.html
Copyright © 2020-2023  润新知