stecino_87658
Jan 22, 2016Nimbostratus
Private key format changes when migrating from 9.x to 11.x using IControl API
Hello,
I am running into an issue when I migrate private key from one LTM to another. This doesn't happen with crt file
I use obj.Management.KeyCertificate.key_export_to_pem to get the key
It's something like this:
['-----BEGIN RSA PRIVATE KEY-----\r<-------content-removed--------->\r\n-----END RSA PRIVATE KEY-----']
Then I take this key and import it into new LTM using:
dest_obj.Management.KeyCertificate.key_import_from_pem_v2
key is created but it looks like:
-----BEGIN PRIVATE KEY----- <--------removed the content> -----END PRIVATE KEY-----
Not only the header and footer look different with RSA dropped, but also the key content
What am I doing wrong?
Thanks in advance