I forgot to include the link, here's http://www.switch.ch/pki/s
Main Topics
Browse All TopicsI'm using weblogic trial certs and i've an application that needs the ssl certs in a .pfx or .p12 format.
I've tried using openssl to export the demo.crt file (found in weblogic folder) as a pfx file with the enclosed private key and an optional password to access the file.
When I try to use openssl to do this I use the command :
openssl pkcs12 -export -out demo.pfx -in demo.crt
I'm prompted to enter a passphrase and on entering the passphrase the program says :
unable to load private key.
I'm assured by BEA that the passphrase used is correct. But the program is still unable to load the private key and let me proceed with the conversion.
Does anyone know how I can do this? is there an easier way to convert my weblogic demo.crt file to a demo.pfx or a demo.p12 file with the private key enclosed?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I forgot to include the link, here's http://www.switch.ch/pki/s
Easiest way is to import then export; there are lots of tools to do this, but tbh you should be able to do this using native windows tools!
normally, a .crt will appear in windows as a certificate icon - double clicking it shows the details of the certificate - then going to the "details" tab and "copy to file" activates the certificate export tool, which then lets you specify the export format.
That said, the best tool I know of for manipulating certs without using an obscure command line interface is xca from sourceforge.net
http://sourceforge.net/pro
Business Accounts
Answer for Membership
by: a0k0a7Posted on 2007-06-26 at 19:23:01ID: 19369332
Hi, I found this article and the end it describes using openssl how to do to the conversion...
Fo example...
openssl pkcs12 -inkey myserver.key -in myserver.crt ^
-name "myserver certificate" -certfile sureserverEDU.pem ^
-caname "Cybertrust Educational CA" -export -out myserver.pfx