Forum Discussion
Tuomas_Jormola_
Nimbostratus
Mar 16, 2006Problems with Management:: KeyCertificate:: get_certificate_list()
Hello,
I'm trying to build a command-line management interface for certificates and keys stored on our F5 BIG-IP LTM. I'm using Perl and SOAP::Lite. Generally the iControl interface is worki...
Mar 16, 2006
Actually, as of 9.0, enums are represented by their string values. In 4.x we had enums as integers, but from based on feedback we changed that behavior in 9.0. If the value passed in for the mode flag isn't one of the valid string values (which 0, 1, ... are not), it defaults to MANAGEMENT_MODE_DEFAULT.
Change your code like this and you should be set:
sub get_all_certificate_names {
Management of keys/certs used in SSL profiles.
my $params = SOAP::Data->name(mode => 'MANAGEMENT_MODE_DEFAULT');
Management of keys/certs used by the web server.
my $params = SOAP::Data->name(mode => 'MANAGEMENT_MODE_WEBSERVER');
Management of keys/certs used by enterprise management
my $params = SOAP::Data->name(mode => 'MANAGEMENT_MODE_EM');
Management of keys/certs used by GTM's iQuery.
my $params = SOAP::Data->name(mode => 'MANAGEMENT_MODE_IQUERY');
my $res = do_request('Management', 'KeyCertificate', 'get_certificate_list', $params);
return ref $res ? $res->result : undef;
}
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
