Forum Discussion
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";
}
1 Reply
- mhite_60883
Cirrocumulus
See https://devcentral.f5.com/community/group/aft/2163154/asg/51
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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