This discussion is archived
4 Replies Latest reply: May 24, 2012 4:42 AM by sabre150 RSS

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

893921 Newbie
Currently Being Moderated
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");

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points