Add debugging code to PKCS12 generation routine