paddycobbett,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.
EE_AutoDeleter
Main Topics
Browse All TopicsDoes anyone ever successfully exported the SSL "Private Key" from Sun One server running on AIX?
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.
Business Accounts
Answer for Membership
by: rcarangalanPosted on 2007-12-12 at 17:29:47ID: 20461698
http://docs.sun.com/source /816-5682- 10/esecurt y.htm
oot>/bin/h ttps/lib 2util -o export.pkcs12 -n Server-Cert -d .
I found the answer here.
export LD_LIBRARY_PATH=3D<serverr
# cd <serverroot>/alias
# ../bin/https/admin/bin/pk1
-P "https-hostname-hostname-"
Enter Password or Pin for "NSS Certificate DB":
Enter password for PKCS12 file:
Re-enter password:
pk12util: PKCS12 EXPORT SUCCESSFUL
# ls -tlra export.pkcs12
-rw------- 1 root root 3372 Aug 9 12:16 export.pkcs12
#
Then you can extract either the key or the cert...
# openssl pkcs12 -info -in export.pkcs12
Enter Import Password:
....
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----BEGIN RSA PRIVATE KEY-----
....
-----END RSA PRIVATE KEY-----
....
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----