Forum Discussion
exporting a cert from the F5
I am following another article - LINK to export a SSL cert on the F5 so i can import it to other IIS web servers.
Is there a way to export the cert and the key into a PFX or P12 file?
3 Replies
- ReganAnderson
Employee
You can do this in the CLI using OpenSSL, for example:
v10: openssl pkcs12 -export -out /var/tmp/certkey.p12 -inkey /config/ssl/ssl.key/.key -in /config/ssl/ssl.crt/.crt
v11: openssl pkcs12 -export -out /var/tmp/certkey.p12 -inkey /config/filestore/files_d/Common_d/certificate_key_d/:Common:.key -in /config/filestore/files_d/Common_d/certificate_d/:Common:.crt
In both examples the pkcs12 file is created in /var/tmp/
Hope that helps!
- Kevin_Stewart
Employee
You cannot export to a .pfx/.p12 file. You'll need to export the cert and key separately and rejoin with OpenSSL.
openssl pkcs12 -export -out file.p12 -inkey [key file] -in [cert file] - Richard__HarlanHistoric F5 Account
I think this will have to be done with openSSL on the command line. the following openSSL command should work for you
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com