Forum Discussion
mhite_60883
Cirrocumulus
May 30, 2013Urgent -- Help with import_from_archive_stream() key/cert management API call
Hello,
I am trying to use the import_from_archive_stream() function as documented here:
https://devcentral.f5.com/wiki/iControl.Management__KeyCertificate__import_from_...
Faintly_Lucky
Nimbostratus
Jun 05, 2013M,
I'm not one of the Devs, but I've done a bit of work in the KeyCertificate interface and will help if I can. What language are you writing in and what version are you testing this on? Can you please post your code so that I can see it?
Without seeing your code, I can only make a guess, but it sounds like you might be giving file names when what the interface is looking for is IDs. I've run into that a lot with the KeyCert interface. Whereas the file name might be www.example.com.crt or www.example.com.key, the ID will be www.example.com. The parameter descriptions seem to support that. Whereas I don't think that this would work (I use Perl):
$soapresponse = $certkey->import_from_archive_stream(
SOAP::Data->name (mode => MANAGEMENT_MODE_DEFAULT ),
SOAP::Data->name (archive_stream => [blah.tgz] ),
SOAP::Data->name (keys => [www.example.com.key] ),
SOAP::Data->name (certs => [www.example.com.crt]),
);
I think that this WOULD work:
$soapresponse = $certkey->import_from_archive_stream(
SOAP::Data->name (mode => MANAGEMENT_MODE_DEFAULT ),
SOAP::Data->name (archive_stream => [blah.tgz] ),
SOAP::Data->name (keys => [www.example.com] ),
SOAP::Data->name (certs => [www.example.com]),
);
Hope that this is the answer, but if it's not, we'll just keep working until we get it figured out.
Chris
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