Demystifying iControl REST Part 5: Transferring Files
Updated Aug 04, 2023
Version 5.0Was this article helpful?
Is it possible to install PKCS 12 cert through Python SDK?
I don't see any interface under bigip.tm.sys.cryto.py like certs and keys. So I tried to use the format where Chris Hiner used above but it didn't work.
command=install
name=name_to_show_in_ssllist
from-local-file=/var/config/rest/downloads/nameof.file.pkcs12
passphrase=password_for_pkcs12
I tried like this but it didn't work. I wonder what is the correct format for pkcs 12.
param_set = {'from-local-file':'/var/config/rest/downloads/testpkcs.p12', 'name':'testpkcsfile', 'passphrase':'pkcs_pw'}
bigip.tm.sys.crypto.keys.exec_cmd('install',** param_set)
bigip.tm.sys.crypto.certs.exec_cmd('install',** param_set)