Forum Discussion

vishal_124938's avatar
vishal_124938
Icon for Nimbostratus rankNimbostratus
Aug 22, 2013

Import certificate and key using icontrol api

i am trying to import a key and certificate using the following icontrol api from my laptop where the certificate and key is saved into a tgz file and placed inside "C:/ssl"

 

String fileName = "webcertkey.tgz"; String location = "C:/ssl"; String keyIds = {"web1.route.key"}; String certIds = {"web1.route.com"};

 

interfaces.getManagementKeyCertificate().import_from_archive_file(ManagementKeyCertificateManagementModeType.MANAGEMENT_MODE_EM, location,fileName, keyIds, certIds);

 

This piece of code is not working. Can anyone let me know how we can import cert to f5 from my laptop

 

1 Reply

  • I used even the following method

     

    interfaces.getManagementKeyCertificate().import_from_archive_file

     

    It does not work either.