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:
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.
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;
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
$sMode = 0
instead of
$sMode = "MANAGEMENT_MODE_DEFAULT";
?
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
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