Forum Discussion
- hooleylistCirrostratusHi Philip,
- Philip_LNimbostratusThats what I thought. However when I use a local file say c:\ssl\cert.pfx if fails telling me the following:
- hooleylistCirrostratusCan you try one of these:
- Philip_LNimbostratusTried
NetworkCredential creds = new NetworkCredential(); creds.UserName = username; creds.Password = password; String[] ids = new string[24]; ids[0] = "test"; String[] file_names = new string[100]; file_names[0] = "C:\\SSLInfo\\Certs\\chut.pfx"; String[] passwords = new string[24]; passwords[0] = "pass"; Management.KeyCertificate.iControl.ManagementKeyCertificate iControl = new Management.KeyCertificate.iControl.ManagementKeyCertificate(); iControl.Url = "https://bigip/iControl/iControlPortal.cgi"; iControl.Credentials = creds; iControl.pkcs12_import_from_file(Management.KeyCertificate.iControl.ManagementKeyCertificateManagementModeType.MANAGEMENT_MODE_WEBSERVER, ids, file_names, passwords, false);
- hooleylistCirrostratusPer this post, it should be with a forward slash instead of one or more backslashes:
- Philip_LNimbostratusPer that post and your reccomendation I tried that (see begining of my last post) and it failed with:
NetworkCredential creds = new NetworkCredential(); creds.UserName = "username"; creds.Password = "password"; String[] ids = new string[24]; ids[0] = "test"; String[] file_names = new string[100]; file_names[0] = "C:/SSLInfo/Certs/chut.pfx"; String[] passwords = new string[24]; passwords[0] = "pass"; Management.KeyCertificate.iControl.ManagementKeyCertificate iControl = new Management.KeyCertificate.iControl.ManagementKeyCertificate(); iControl.Url = "https://bigip/iControl/iControlPortal.cgi"; iControl.Credentials = creds; iControl.pkcs12_import_from_file(Management.KeyCertificate.iControl.ManagementKeyCertificateManagementModeType.MANAGEMENT_MODE_WEBSERVER, ids, file_names, passwords, false);
- Philip_LNimbostratusI switched the string to /tmp/chut.pfx and uploaded the cert to the ltm and the script completed. However, nothing showed up so it looks like the script completed without error but did not actually do anything.