X509v1 certs in the keystore prevent correct handling of SubjectKeyIdentifier
-----------------------------------------------------------------------------

         Key: WSS-7
         URL: http://issues.apache.org/jira/browse/WSS-7
     Project: WSS4J
        Type: Bug
 Environment: any
    Reporter: Davide Romanini
 Assigned to: Davanum Srinivas 
    Priority: Minor


When WSS4J looks in the keystore given a SubjectKeyIdentifier and it finds a 
X509v1 certificate it throws a WSSecurityException preventing to find the right 
certificate. It should skip the wrong certificate and go on anyway.

Suggested solution (diff for Merlin.java) (surely it should be investigated 
more deeply)

386c386,392
<                 byte[] data = getSKIBytesFromCert((X509Certificate) cert);
---
>                 byte[] data;
>                 try {
>                     data = getSKIBytesFromCert((X509Certificate) cert);
>                 } catch (WSSecurityException myException)
>                 {
>                     // cert is < 3, skip and go on with next one
>                     continue;
>                 }



-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to