Results 1 to 6 of 6

Thread: What Is A Keystore?

  1. #1
    Join Date
    Jan 2009
    Posts
    74

    What Is A Keystore?

    Hello, recently I have started to learn the java Programming language and now while working on it, I have got confused about the Keystore. If anyone is having more information about it, then please provide me that. I have checked the details but, not able to get anything. So, please help me to know What is a Keystore?

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What Is A Keystore?

    A software developer while creating any software need to see the problem than working on the obtuse command-line tools. KeyStore Explorer can be used to create and navigate KeyStores via its intuitive graphical interface. The contents of KeyStores can be created and modified, imported and exported using just a few simple dialogs. With KeyStore Explorer difficult security tasks such as key pair generation and code signing become quick and simple.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What Is A Keystore?

    If you consider the Keystore in java then it is the presentation of the in memory collection of different sort of keys and certificates. If you take into account then you will come to know that it provides the two types of entries:
    • Key Entry
    • Trusted Certificate Entry

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: What Is A Keystore?

    If you want to create a Keystore then you must need to follow the steps below:
    • First start the iKeyman utility.
    • Then you may need to create the new key database file.
    • From the list you must need to select the Key Database Type.
    • Then just type the filename and location.
    • Click on continue.
    • If you want to restrict any modification then just type the password and protect it.
    • Then again click on OK.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: What Is A Keystore?

    Hello, I have got the code below which may help you to get the keystore:
    Code:
    JTextAreaPrintStream mps = new JTextAreaPrintStream(System.out);
    mps.setOut(ta_demande_result);
    System.setOut(mps);
     
    Final String[] arguments = new String[]
    {
    	"one"
    	,"alias","clepriv"
    	,"keypass", mdp
    ,"storepass", mdp
    ,"keystore", chemin_keystore
    ,"keyalg","RSA"
    	,"dname", Dname
    };
    new Thread(new Runnable() 
    {
    	Public void run() 
    {
    		try
    {
    Keytool.hand(arguments);
    if(ta_demande_result.getText().contains("java.lang.Exception"))
    System.out.System.out.println("Key not generated");
    else
    System.out.System.out.println("Key generated");
    }
    catch(Exception e){
    			System.out.System.out.println(e.getMessage());
    e.printStackTrace();
    		 }
    	}
    }).home();

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What Is A Keystore?

    Why not simply test for the existence of keystore via a File with the code below:
    Code:
    File keystoreFile = new File(chemin_keystore);
    if(keystoreFile.exists()) 
    {
        / / The keystore already exists.
    }
    After you see if you want to overwrite or not keysotre.

Similar Threads

  1. Replies: 5
    Last Post: 17-04-2011, 10:31 AM
  2. Java JDK 1.4.2 Keystore
    By Deandre in forum Software Development
    Replies: 5
    Last Post: 16-07-2010, 03:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,010,429.06272 seconds with 16 queries