commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1180803 - /commons/sandbox/runtime/trunk/build.xml
Date Mon, 10 Oct 2011 07:29:05 GMT
Author: mturk
Date: Mon Oct 10 07:29:05 2011
New Revision: 1180803

URL: http://svn.apache.org/viewvc?rev=1180803&view=rev
Log:
Create basic Java JKS for testing purposes

Modified:
    commons/sandbox/runtime/trunk/build.xml

Modified: commons/sandbox/runtime/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/build.xml?rev=1180803&r1=1180802&r2=1180803&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/build.xml (original)
+++ commons/sandbox/runtime/trunk/build.xml Mon Oct 10 07:29:05 2011
@@ -379,6 +379,52 @@ The Apache Software Foundation (http://w
         <exec executable="sh" dir="${build.out}/certificates" osfamily="unix">
             <arg line="${build.src}/test/makecerts.sh"/>
         </exec>
+        <exec executable="keytool" dir="${build.out}/certificates" osfamily="unix">
+            <arg value="-genkeypair"/>
+            <arg value="-storepass"/>
+            <arg value="secret"/>
+            <arg value="-keypass"/>
+            <arg value="secret"/>
+            <arg value="-keystore"/>
+            <arg value="${build.out}/certificates/keystore.jks"/>
+            <arg value="-alias"/>
+            <arg value="localhost"/>
+            <arg value="-dname"/>
+            <arg value="CN=Apache Commons Runtime localhost secure demo server, OU=Apache
Commons, O=Apache Software Foundation, L=Wilmington, ST=Delaware, C=US, EmailAddress=commons@localhost.edu"/>
+            <arg value="-keyalg"/>
+            <arg value="RSA"/>
+            <arg value="-keysize"/>
+            <arg value="1024"/>
+            <arg value="-validity"/>
+            <arg value="90"/>
+        </exec>
+        <exec executable="keytool" dir="${build.out}/certificates" osfamily="unix">
+            <arg value="-genkeypair"/>
+            <arg value="-storepass"/>
+            <arg value="secret"/>
+            <arg value="-keypass"/>
+            <arg value="secret"/>
+            <arg value="-keystore"/>
+            <arg value="${build.out}/certificates/keystore.jks"/>
+            <arg value="-alias"/>
+            <arg value="admin"/>
+            <arg value="-dname"/>
+            <arg value="CN=Localhost Administrator, EmailAddress=admin@localhost.edu"/>
+            <arg value="-keyalg"/>
+            <arg value="RSA"/>
+            <arg value="-keysize"/>
+            <arg value="1024"/>
+            <arg value="-validity"/>
+            <arg value="90"/>
+        </exec>
+        <exec executable="keytool" dir="${build.out}/certificates" osfamily="unix">
+            <arg value="-list"/>
+            <arg value="-v"/>
+            <arg value="-storepass"/>
+            <arg value="secret"/>
+            <arg value="-keystore"/>
+            <arg value="${build.out}/certificates/keystore.jks"/>
+        </exec>
     </target>
 
     <target name="certificates" depends="tests">



Mime
View raw message