Fixed generation of privateKey for certificate/CSR generation when using password.