4 Replies Latest reply: May 24, 2012 6:42 AM by sabre150 RSS

    excute keytool -genkeypair with DN command using Runtime.getRuntime().exec

    893921
      How to run Keytool -genkeypair with DN command using Runtime.getRuntime().exec() ?

      Process p = Runtime.getRuntime().exec("keytool -genkeypair -alias alias1 -dname \" CN="testname", OU="testunit", O="testorganization", L="SB",S="CA", C="USA "\" -keypass root -keystore keystore1 -storepass root -validity 60");