<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<contextPath>/mycontext</contextPath>
<scanIntervalSeconds>5</scanIntervalSeconds>
<connectors>
<!--connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
</connector-->
<connector implementation="org.mortbay.jetty.security.SslSocketConnector">
<port>8443</port>
<maxIdleTime>60000</maxIdleTime>
<keystore>${project.basedir}/src/main/certificates/server1.jks</keystore>
<password>pass</password>
<keyPassword>pass</keyPassword>
<wantClientAuth>true</wantClientAuth><!-- deprecated! -->
<needClientAuth>false</needClientAuth><!-- deprecated! -->
<!-- http://stackoverflow.com/questions/8816874/avoid-use-of-deprecated-methods-in-org-eclipse-jetty-server-ssl-sslsocketconnect -->
</connector>
</connectors>
</configuration>
</plugin>
</plugins>
</build>
Wednesday, March 28, 2012
Client authentication with SSL certificates in Jetty in maven
Here is an example pom.xml fragment:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment