ignite-204 cert generation fix

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/3d519a98
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/3d519a98
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/3d519a98

Branch: refs/heads/ignite-204
Commit: 3d519a98da771ea8e1c661520ba026297fabdc72
Parents: 6e5be01
Author: avinogradov <avinogra...@gridgain.com>
Authored: Wed Feb 11 14:58:50 2015 +0300
Committer: avinogradov <avinogra...@gridgain.com>
Committed: Wed Feb 11 14:58:50 2015 +0300

----------------------------------------------------------------------
 modules/clients/src/test/keystore/generate.sh | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/3d519a98/modules/clients/src/test/keystore/generate.sh
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/keystore/generate.sh 
b/modules/clients/src/test/keystore/generate.sh
index d8c79d3..6d270ed 100644
--- a/modules/clients/src/test/keystore/generate.sh
+++ b/modules/clients/src/test/keystore/generate.sh
@@ -22,35 +22,35 @@ function createStore {
        echo
        echo Clean up all old artifacts: ${artifact}.*
        rm -f ${artifact}.*
-       
+
        echo
        echo Generate a certificate and private key pair for ${artifact}.
-       keytool -genkey -keyalg RSA -keysize 1024 -dname 
"emailAddress=${artifact}@gridgain.com, CN=${artifact}, OU=Dev, O=GridGain, 
L=SPb, ST=SPb, C=RU" -validity 7305 -alias ${artifact} -keypass ${pwd} 
-keystore ${artifact}.jks -storepass ${pwd}
+       keytool -genkey -keyalg RSA -keysize 1024 -dname 
"emailAddress=${artifact}@ignite.com, CN=${artifact}, OU=Dev, O=Ignite, L=SPb, 
ST=SPb, C=RU" -validity 7305 -alias ${artifact} -keypass ${pwd} -keystore 
${artifact}.jks -storepass ${pwd}
 
        echo
        echo Create a certificate signing request for ${artifact}.
        keytool -certreq -alias ${artifact} -file ${artifact}.csr -keypass 
${pwd} -keystore ${artifact}.jks -storepass ${pwd}
-       
+
        echo
        echo "Sign the CSR using CA (default SSL configuration)."
        openssl ca -days 7305 -in ${artifact}.csr -out ${artifact}.pem
-       
+
        echo
        echo Convert to PEM format.
        openssl x509 -in ${artifact}.pem -out ${artifact}.pem -outform PEM
-       
+
        echo
        echo Concatenate the CA certificate file and ${artifact}.pem 
certificate file into certificates chain.
        cat ${artifact}.pem ${ca_cert} > ${artifact}.chain
-       
+
        echo
        echo Update the keystore, ${artifact}.jks, by importing the CA 
certificate.
-       keytool -import -alias ca          -file ${ca_cert} -keypass ${pwd} 
-noprompt -trustcacerts -keystore ${artifact}.jks -storepass ${pwd} 
+       keytool -import -alias ca          -file ${ca_cert} -keypass ${pwd} 
-noprompt -trustcacerts -keystore ${artifact}.jks -storepass ${pwd}
 
        echo
        echo Update the keystore, ${artifact}.jks, by importing the full 
certificate chain for the ${artifact}.
-       keytool -import -alias ${artifact} -file ${artifact}.chain -keypass 
${pwd} -noprompt -trustcacerts -keystore ${artifact}.jks -storepass ${pwd} 
-       
+       keytool -import -alias ${artifact} -file ${artifact}.chain -keypass 
${pwd} -noprompt -trustcacerts -keystore ${artifact}.jks -storepass ${pwd}
+
        echo
        echo Generate PKCS12 storage for the private key and certificate chain.
        keytool -importkeystore \
@@ -60,13 +60,13 @@ function createStore {
                -srcalias ${artifact} -destalias ${artifact} \
                -srckeypass ${pwd} -destkeypass ${pwd} \
                -noprompt
-       
+
        echo
        echo Generate PEM storage for the private key and certificate chain.
        openssl pkcs12 \
                -in ${artifact}.pfx -out ${artifact}.pem \
                -passin pass:${pwd} -passout pass:${pwd}
-               
+
        rm -f ${artifact}.chain ${artifact}.csr
 }
 

Reply via email to