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, [email protected]"/>
+ <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,
[email protected]"/>
+ <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">