Forum Discussion
dmacika_116140
May 19, 2014Nimbostratus
iControl and Powershell - key import and certificate import
I am attempting to script out importing a SSL crt/key pair into a new F5 running 11.3. I'm using iControl within Powershell. I've successfully used iControl and Powershell for other tasks on this n...
Tim_K_92675
Cirrostratus
Looks like the mode is being passed in as a string? Try something like this:
$mgmtModeType = New-Object -TypeName iControl.ManagementKeyCertificateManagementModeType
$mgmtModeType.value__ = 0
Then add it into the call:
$F5.ManagementKeyCertificate.key_import_from_file(
$mgmtModeType,
(,$url),
(,$keyfile),
$false
)
dmacika_116140
Sep 22, 2014Nimbostratus
Yeah, that's the same result I've been seeing.
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