Delete certificate  Crash fix

Delete certificate Crash #493