Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • None
    • None
    • upgrade
    • Rank:
      1|hzwivr:

    Description

       

      With regards to the documentation bug raised in OpenAM-13442

       

      For the code level , it will be useful if we can capture the offending keystore that is involved in the exception

      private void mapPk2Cert() {
      try {
         keyStore = KeyStore.getInstance(keystoreType);
         if (keystoreFile == null || keystoreFile.isEmpty()) {
         logger.error("mapPk2Cert.JKSKeyProvider: KeyStore FileName is null, "
        + "unable to establish Mapping Public Keys to Certificates!");
          return;
      }
         FileInputStream fis = new FileInputStream(keystoreFile);
          keyStore.load(fis, keystorePass.toCharArray());
         // create publickey to Certificate mapping     
      for (Enumeration e = keyStore.aliases(); e.hasMoreElements();) {
      String alias = (String) e.nextElement();
      // if this is not a Private or public Key, then continue.
      if (keyStore.entryInstanceOf(alias, KeyStore.SecretKeyEntry.class)) {
      continue;
      }
      Certificate cert = getCertificate(alias);
      PublicKey pk = getPublicKey(alias);
      String key =
      Base64.encode(pk.getEncoded());
      keyTable.put(key, cert);

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            sam.phua Sam Phua
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: