Generate keystore with generated, self-signed, X.509 credential
[java-idp.git] / build.xml
index c3fe829..af39285 100755 (executable)
--- a/build.xml
+++ b/build.xml
                        addproperty="idp.hostname.input"
                        defaultvalue="${idp.hostname}" />
                 <var name="idp.hostname" value="${idp.hostname.input}" />
+                
+                <input message="A keystore is about to be generated for you. Please enter a password that will be used to protect it."
+                       addproperty="idp.keystore.pass" />
 
                 <propertyfile file="install.properties">
                     <entry key="idp.home" value="${idp.home.input}" />
 
                 <regexSplit input="${idp.hostname}" regex="^.*\.(.*\..*$)" addproperty="idp.scope" />
 
-                <echo message="Generating signing and encryption key and certificate. " />
+                <echo message="Generating signing and encryption key, certificate, and keystore. " />
                 <selfSignedCert hostname="${idp.hostname}"
                                 privateKeyFile="${idp.home}/credentials/idp.key"
-                                certificateFile="${idp.home}/credentials/idp.crt" />
+                                certificateFile="${idp.home}/credentials/idp.crt"
+                                keystoreFile="${idp.home}/credentials/idp.crt"
+                                keystorePassword="${idp.keystore.pass}" />
 
                 <copy todir="${idp.home}/bin" preservelastmodified="true">
                     <fileset dir="${tools.dir}" />