Merge pull request #223 from csmith/master

Add events for certificate problems.
Raise certificate events.