You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2021/11/25 10:13:25 UTC

[wicket] 03/03: WICKET-6937 Use JKS keystore

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch wicket-8.x
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit 2b54fd59083b1b91071ad6a5820e2f74da24c6c0
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Thu Nov 25 12:11:58 2021 +0200

    WICKET-6937 Use JKS keystore
    
    The PKCS12 one either has problems with Maven filtering or Jetty does not like it ...
    
    The new keystore has been generated with the following command:
    
    keytool -genkeypair -alias jetty -keyalg RSA -keysize 4096 -sigalg SHA256withRSA -keypass wicket -startdate "2021/11/25 00:00:00" -validity 3650 -storetype JKS -storepass wicket -keystore keystore
---
 archetypes/quickstart/pom.xml                            |   4 ++--
 .../archetype-resources/src/test/jetty/jetty-ssl.xml     |   2 +-
 .../archetype-resources/src/test/resources/keystore      | Bin 0 -> 3954 bytes
 .../archetype-resources/src/test/resources/keystore.p12  | Bin 4439 -> 0 bytes
 4 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/archetypes/quickstart/pom.xml b/archetypes/quickstart/pom.xml
index 149302a..a8ae111 100644
--- a/archetypes/quickstart/pom.xml
+++ b/archetypes/quickstart/pom.xml
@@ -32,14 +32,14 @@
 				<filtering>true</filtering>
 				<directory>${project.basedir}/src/main/resources</directory>
 				<excludes>
-					<exclude>**/keystore.p12</exclude>
+					<exclude>**/keystore</exclude>
 				</excludes>
 			</resource>
 			<resource>
 				<filtering>false</filtering>
 				<directory>${project.basedir}/src/main/resources</directory>
 				<includes>
-					<include>**/keystore.p12</include>
+					<include>**/keystore</include>
 				</includes>
 			</resource>
 		</resources>
diff --git a/archetypes/quickstart/src/main/resources/archetype-resources/src/test/jetty/jetty-ssl.xml b/archetypes/quickstart/src/main/resources/archetype-resources/src/test/jetty/jetty-ssl.xml
index f411ae7..f23231b 100644
--- a/archetypes/quickstart/src/main/resources/archetype-resources/src/test/jetty/jetty-ssl.xml
+++ b/archetypes/quickstart/src/main/resources/archetype-resources/src/test/jetty/jetty-ssl.xml
@@ -6,7 +6,7 @@
 <!-- and either jetty-https.xml or jetty-spdy.xml (but not both)   -->
 <!-- ============================================================= -->
 <Configure id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory">
-  <Set name="KeyStorePath"><Property name="maven.project.build.directory.test-classes" default="." />/<Property name="jetty.keystore" default="keystore.p12"/></Set>
+  <Set name="KeyStorePath"><Property name="maven.project.build.directory.test-classes" default="." />/<Property name="jetty.keystore" default="keystore"/></Set>
   <Set name="KeyStorePassword"><Property name="jetty.keystore.password" default="wicket"/></Set>
   <Set name="KeyManagerPassword"><Property name="jetty.keymanager.password" default="wicket"/></Set>
   <Set name="EndpointIdentificationAlgorithm"></Set>
diff --git a/archetypes/quickstart/src/main/resources/archetype-resources/src/test/resources/keystore b/archetypes/quickstart/src/main/resources/archetype-resources/src/test/resources/keystore
new file mode 100644
index 0000000..1473db3
Binary files /dev/null and b/archetypes/quickstart/src/main/resources/archetype-resources/src/test/resources/keystore differ
diff --git a/archetypes/quickstart/src/main/resources/archetype-resources/src/test/resources/keystore.p12 b/archetypes/quickstart/src/main/resources/archetype-resources/src/test/resources/keystore.p12
deleted file mode 100644
index 5dfa868..0000000
Binary files a/archetypes/quickstart/src/main/resources/archetype-resources/src/test/resources/keystore.p12 and /dev/null differ