Forum Discussion
get_certificate_list_v2 not working
Hi,
We are using iControl API for one of our very critical solutions. We are facing some issues while calling get_certificate_list_v2 method for one of our BIG-IP device, others are working fine.
BIG-IP Version : 11.5.4
Error Thrown : SOAP-ENV:Server Exception caught in Management::urn:iControl:Management/KeyCertificate::get_certificate_list_v2() Exception: Common::OperationFailed primary_error_code : -7 (0xFFFFFFF9) secondary_error_code : 0
I have no clue about the issue. Your help on this would be highly appreciated.
Regards, Prabir
Please post your code, it will make it easier for people to help.
- access2AE_25064Nimbostratus
Hi,
Please find the snippet below:
sub SOAP::Transport::HTTP::Client::get_basic_credentials { return "$sUID" => "$sPWD"; } $KeyCertificate = SOAP::Lite -> uri('urn:iControl:Management/KeyCertificate') -> proxy("https://$sHost:$sPort/iControl/iControlPortal.cgi"); eval { $KeyCertificate->transport->http_request->header( 'Authorization' => 'Basic ' . MIME::Base64::encode("$sUID:$sPWD", '') ); }; if ( $sMode eq "" ) { $sMode = "MANAGEMENT_MODE_DEFAULT"; } $soapResponse = $KeyCertificate->get_certificate_list_v2( SOAP::Data->name(mode => $sMode), ); print Dumper $soapResponse->result;
- access2AE_25064Nimbostratus
Error string comes as blank. So, i am not able to figure out what might be the issue.
Exception: Common::OperationFailed primary_error_code : -7 (0xFFFFFFF9) secondary_error_code : 0 error_string :
Sorry, I thought you were using powershell. I also had a problem with the v2 method and resorted to get_certificate_list instead. Don't remeber if the issue was something similar though.
/Patrik
You could try
instead of$sMode = 0
?$sMode = "MANAGEMENT_MODE_DEFAULT";
- access2AE_25064Nimbostratus
HI Patrik,
I tried with $sMode = 0, it throws invalid argument error
SOAP-ENV:Server Exception caught in Management::urn:iControl:Management/KeyCertificate::get_certificate_list_v2() Common::InvalidArgument
- access2AE_25064Nimbostratus
Hi Patrik,
Anyone you know who can help on this?
Regards, Prabir
Sorry, but I don't. Have you tried the v1 version?
Kind regards, Patrik
Recent Discussions
Related Content
* 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