geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy (JIRA)" <...@geronimo.apache.org>
Subject [jira] Created: (GERONIMO-2436) FileKeystoreInstance.generateKeyPair() should check if the keystore is loaded
Date Wed, 27 Sep 2006 13:07:52 GMT
FileKeystoreInstance.generateKeyPair() should check if the keystore is loaded
-----------------------------------------------------------------------------

                 Key: GERONIMO-2436
                 URL: http://issues.apache.org/jira/browse/GERONIMO-2436
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: security
    Affects Versions: 1.1.1, 1.2
            Reporter: Vamsavardhana Reddy
             Fix For: 1.1.2, 1.2


I have the following code:

KeystoreInstance ks = PortletManager.getCurrentServer(request).getKeystoreManager().createKeystore("mykeystore",
password);
ks.unlockKeystore(password);
ks.generateKeyPair(alias, password, password, keyAlgorithm, keySize, algorithm, 365, cn, ou,
o, l, st, c);

The generateKeyPair() call is resulting in NullPointerException since the newly created keystore
is not readily loaded and generateKeyPair() is not checking if the keystore is loaded. generateKeyPair()
should check and load the keystore if necessary.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message