import SSL Cert via iControl

Hi Dear,

I am writing a script to import SSL Cert from my laptop to BIGIP, however when I run the script no errors appearred but nothing happen to the cert importing, I can’t find the SSL cert in /config/ssl/ssl.crt/ folder

Dose anyone getting the same problem ? any idea or solution?

and once the cert imported successfully, will it be show in the UGI “Certificate List” page ?

my code as below:

my $cert_id = $ARGV[3];

my $fileName = $ARGV[4];

if ( ( $cert_id eq “” ) or ( $fileName eq “” ) ) { print “please input Cert id and Cert name\n\n”; help(); exit;}

open(MYINPUTFILE, “<$fileName”) || die(“Could not open file!”);

my ($file_data)=;

close(MYINPUTFILE);

$soap_response = $KeyCertificate->certificate_import_from_file

(

SOAP::Data->name(mode => “MANAGEMENT_MODE_DEFAULT”),

SOAP::Data->name(cert_ids => [$cert_id]),

SOAP::Data->name(file_names => [$file_data]),

SOAP::Data->name(overwrite => 0)

);

&checkResponse($soap_response);

print “Success to upload $cert_id and $fileName\n\n”;

}

See https://devcentral.f5.com/community/group/aft/2163154/asg/51