On Thu, Dec 09, 2010, Kannan J wrote:

> I have a certificate file MSCACertificate.cer and the corresponding private
> key MSCAPrivateKey.pem from which I created a p12 file
> MSCACertificateBundle.p12 using the command D:\>openssl pkcs12 -export -out
> MSCACertificateBundle.p12 -inkey MSCAPrivateKey.  pem -in
> MSCACertificate.cer When I try to read the Certificate using the below java
> code, it fails to find the certificate against the alias (which happens to
> be "1"). I'm attaching the certificate, key and the p12 bundle. Please
> advice.   

Try using the -name option to set an appropriate friendly name for the key and
certificate pair.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to