Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ESB-1734
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Guillaume Nodet
Reporter: Joe Luo
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
FUSE ESB

No error log if the certificate is not valid

Created: 18/Jul/12 03:59 PM   Updated: 27/Jul/12 10:00 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

External Issue URL: https://issues.apache.org/jira/browse/FELIX-3604


 Description  « Hide
If bundles are signed with an invalid or already expired certificate the certificate will be revoked but there is no log entry because it's not implemented.

See TODO in
org/apache/felix/framework/security/verifier/BundleDNParser.java line 445 which catches the CertificateException without any logging.

417     private void getRootChains(Certificate[] certificates, List chains,
418         boolean check)
419     {
420         List chain = new ArrayList();
421 
422         boolean revoked = false;
423 
424         for (int i = 0; i < certificates.length - 1; i++)
425         {
426             X509Certificate certificate = (X509Certificate) certificates[i];
427 
428             if (!revoked && isRevoked(certificate))
429             {
430                 revoked = true;
431             }
432             if (!check || !revoked)
433             {
434                 try
435                 {
436                     if (check)
437                     {
438                         certificate.checkValidity();
439                     }
440 
441                     chain.add(certificate);
442                 }
443                 catch (CertificateException ex)
444                 {
445                     // TODO: log this or something
446                     revoked = true;
447                 }
448             }

It's hard to find the problem why a BundleSignerCondition is not applied to your bundle when nobody tells you that the certificate of your bundle was revoked.

We should add an error log and print appropriate logging to tell user what's happening here.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Nodet added a comment - 25/Jul/12 03:42 PM
This issue should now be fixed with FELIX-3604 being resolved.

Guillaume Nodet added a comment - 27/Jul/12 10:00 AM
Fixed in 4.4 and 7.0 branches