Handling events for the Certificate plugin