Raise certificate events.

Issue #213