Forum Discussion

Des_Herriott_21's avatar
Des_Herriott_21
Icon for Nimbostratus rankNimbostratus
Aug 19, 2015

Management::KeyCertificate::get_certificate_list_v2 - unknown type CurveName?

I'm trying to get a list of certificates from BigIPs running v11.5.2 & v11.5.3, and I'm getting this error in the SOAP return value:

Unrecognized type '{urn:iControl}Management.KeyCertificate.CurveName'

Using Perl, the code is basically:

$response = $soap->get_certificate_list_v2(SOAP::Data->name(mode => "MANAGEMENT_MODE_DEFAULT"));

where $soap is a successfully created 'Management/KeyCertificate' object.

Looking at the docs, Management.KeyCertificate.CurveName is an enum introduced in 11.5.0, so why I am getting this "unknown type" error?

(For devices prior to v11.5 I use $soap->get_certificate_list(SOAP::Data->name(mode => "MANAGEMENT_MODE_DEFAULT")) and that works fine.)

Thanks!

2 Replies

  • Okay, I think I figured it out. I need to add this to my copy of iControlTypeCast.pm:

     

    *** 113,118 ****
    --- 113,119 ----
                    "{urn:iControl}Management.KeyCertificate.ManagementModeType" => 1,
                    "{urn:iControl}Management.KeyCertificate.SecurityType" => 1,
                    "{urn:iControl}Management.KeyCertificate.ValidityType" => 1,
    +               "{urn:iControl}Management.KeyCertificate.CurveName" => 1,
                    "{urn:iControl}Management.SNMPConfiguration.AuthType" => 1,
                    "{urn:iControl}Management.SNMPConfiguration.DiskCheckType" => 1,
                    "{urn:iControl}Management.SNMPConfiguration.LevelType" => 1,
    

     

    I couldn't find a copy of iControlTypeCast.pm specifically for 11.5+ - does such a thing exist anywhere?

    • Joe_Pruitt's avatar
      Joe_Pruitt
      Nope. I'll have to go back and update the codeshare with the latest set of enums in the iControlTypeCast.pm. Thanks for the reminder! -Joe