Add certificate debugging