Forum Discussion
Steve_Brown_882
Jul 13, 2009Historic F5 Account
more pyControl questions
I am on to a new script and I just can't seem to get the code to work. I am trying to use
Management_KeyCertificate.certificate_request_import_from_file(
mode = 0, I...
Steve_Brown_882
Jul 14, 2009Historic F5 Account
Ok I think I am close, but still can't get this to work.
Here is what I have that doesn't work. I was able to export a key, so I know the "mode = 0" and "['testKey']" portions work.
b.Management_KeyCertificate.key_import_from_file(
mode = 0,
key_ids = ['testKey'],
file_names = ['c:\\Cert\\test.key'])
I also tried some thing like this, with no luck.
mycert = open('c:\\Cert\\test.key')
b.Management_KeyCertificate.key_import_from_file(
mode = 0,
key_ids = ['testKey'],
file_names = [mycert.read()])
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects