name attribute of pkcs11 configuration file cannot contain space

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 5.0u1
    • Component/s: security-libs
    • None

      If the name attribute of pkcs11 configuration have space, for instance, "Sun Hardware Accelerator",
      then we get the following exception:
      Exception in thread "main" java.security.ProviderException: Error parsing configuration
              at sun.security.pkcs11.Config.getConfig(Config.java:54)
              at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:78)
              at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:74)
              at TigerTest.main(TigerTest.java:10)
      Caused by: sun.security.pkcs11.ConfigurationException: Unknown keyword 'test', line 1
              at sun.security.pkcs11.Config.parse(Config.java:297)
              at sun.security.pkcs11.Config.<init>(Config.java:134)
              at sun.security.pkcs11.Config.getConfig(Config.java:50)

      ###@###.### 2004-09-03
      ###@###.### 2004-09-03

            Assignee:
            Unassigned
            Reporter:
            Shing Wai Chan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: