Revision [1222]

Last edited on 2007-12-03 22:36:18 by WikiAdmin
Additions:
Then use it in combination with openssl:
Deletions:
I'm too lazy to modify the Java program to take arguments. Change the password and alias and compiled it. Then use it in combination with openssl:


Revision [1221]

Edited on 2007-12-03 22:35:57 by WikiAdmin
Additions:
ks.load(new FileInputStream(args[0]),
args[2].toCharArray());
Key key = ks.getKey(args[1],
args[2].toCharArray());
System.out.println("Usage: java DumpPrivateKey file alias password");
java DumpPrivateKey tomcat.keystore tomcat changeit | openssl enc -a >> tomcat.key
Deletions:
ks.load(new FileInputStream("tomcat.keystore"),
"changeit".toCharArray());
Key key = ks.getKey("tomcat",
"changeit".toCharArray());
java DumpPrivateKey | openssl enc -a >> tomcat.key


Revision [1220]

Edited on 2007-12-03 22:32:57 by WikiAdmin
Additions:
%%(java;DumpPrivateKey.java)
Deletions:
%%(DumpPrivateKey.java;java)


Revision [1219]

The oldest known version of this page was created on 2007-12-03 22:32:39 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki