Welcome to Dream.In.Code
Become a Java Expert!

Join 150,185 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,089 people online right now. Registration is fast and FREE... Join Now!




.jks to .pkcs

 
Reply to this topicStart new topic

.jks to .pkcs

new2programs
30 Oct, 2007 - 06:49 AM
Post #1

New D.I.C Head
*

Joined: 10 Apr, 2007
Posts: 29



Thanked: 1 times
My Contributions
how will convert a .jks to pkcs#12?
User is offlineProfile CardPM
+Quote Post

1lacca
RE: .jks To .pkcs
30 Oct, 2007 - 07:30 AM
Post #2

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
I'm not sure about this, but my bet would be taht the .jks is a java keystore file. you can load it something like this (according to google):
CODE

            final java.security.KeyStore keystore =
                java.security.KeyStore.getInstance(
                    "jks"
            );
            java.io.FileInputStream fis =
                new java.io.FileInputStream(
                    "alice.jks"
                );
            keystore.load(fis, "password".toCharArray());


From here you can extract the key from the KeyStore.
Please confirm if it worked or it didn not, because I'm curious, too smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 04:05AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month