[WIP] Extend exception/cert handling

related to #28 
Sure ! I do it tonight.