> Hello > > I'm newbie to openSSL. I'm trying to create a pkcs12 file with Win32 > OpenSSL 0.97d. > I've generated a CSR with keytool. I got my cert file generated by a CA > and a private key file (generated by keytool). > The following command : > > OpenSSL> pkcs12 -export -inkey domain.key -in domain.crt -out > domain.pkcs12 > > make the following error : > > Loading 'screen' into random state - done > unable to load private key > error in pkcs12 > > Most posts i've read about this error talk about 0.96 bug. But i'm in 0.97 > ... > I've not found in openssl.cnf definition of private key location ... but i > think it must be in same directory that crt file ? ( > {openssl-install-dir}/bin exactly ...)
Hello, The private key is not in the same directory, here's my default openssl.cnf: certificate = $dir/certs/CA.pem # The CA certificate serial = $dir/serial # The current serial number crl = $dir/crl.pem # The current CRL private_key = $dir/private/CAKey.pem# The private key RANDFILE = $dir/private/.rand # private random number file Fred. > > Can it come from a bad private key format ? > > Thanks for your help ... > > Pierre > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]