Forum Discussion
Philip_L
Nimbostratus
Apr 04, 2012Management.KeyCertificate.pkcs12_import_from_file() File Location?
Hello, When using Management.KeyCertificate.pkcs12_import_from_file() Im having trouble figuring out where to place the files. The wiki says /config/ssl/ is used if no directory is specified however n...
Philip_L
Nimbostratus
Apr 05, 2012Tried
file_names[0] = @"C:\SSLInfo\Certs\chut.pfx";
file_names[0] = @"C:/SSLInfo/Certs/chut.pfx";
file_names[0] = "C:\\SSLInfo\\Certs\\chut.pfx";
All fail
here is my code
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); 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
