Forum Discussion
Import SSL certificate using iControl
Hello,
I am trying to import a pkcs12 certifcate backup using VB.net.
I am calling the method as follow
pkcs12_import_from_file(KeyMangement.ManagementKeyCertificateManagementModeType.MANAGEMENT_MODE_DEFAULT, {3}, {"c:\temp\cert.pfx", {"password"}, False)
I keep getting this error
{"Exception caught in Management::urn:iControl:Management/KeyCertificate::pkcs12_import_from_file()
Exception: Common::OperationFailed
primary_error_code : -17 (0xFFFFFFEF)
secondary_error_code : 0
error_string : Invalid filename. Filenames may only contain the following characters: [A-Za-z][0-9].-_/"}
I've seen some post related to this error but no one seem to have an answer.
Thanks
2 Replies
- FrankC_30490
Nimbostratus
Upon further research, it looks like the pfx file needs to be uploaded to F5 device before i can call this method. Can anyone confirm?
If that's the case, whats the best way to upload the cert programatically? - Hank_Stallings
Nimbostratus
Take a look at this posting:
https://devcentral.f5.com/questions/what-is-the-path-to-a-users-home-directory-from-root
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