Forum Discussion

cwdusheke_14267's avatar
cwdusheke_14267
Icon for Nimbostratus rankNimbostratus
Dec 24, 2014

copying ssl key and cert (Import Failed: Keys do not match)

I am trying to copy a SSL Key and Cert from one F5 to another F5. The source F5 with the SSL Key/Cert is version 11.5.1. The destination F5 is version 10.2.4. I can import the key from the source F5 to the other F5. However, when I attempt to copy the cert, I get a key mismatch. I tried several methods to copy the key and cert. I tried exporting the key to my desktop and then download the cert to my desktop and then import it to the new F5 pointing to those files. I still get the same error.

 

I typically copy and paste it. However, it gives me the same error.

 

Any ideas?

 

3 Replies

  • You should be able to use openssl through the CLI to export the cert and key together and see if you can import it sucessfully on your target F5.

    openssl pkcs12 -export -out /var/tmp/certkey.p12 -inkey /config/filestore/files_d/Common_d/certificate_key_d/:Common:[NAME].key -in /config/filestore/files_d/Common_d/certificate_d/:Common:[NAME].crt
    

    The output will be in

    /var/tmp
    , and you can use something like WinSCP to get the file.