Fix PKCS#12 key generation bug.