doing XML certificate parsing
fix exception throwing