Forum Discussion
Sean_Powell_821
Nimbostratus
Feb 05, 2015Trying to Set Certificate and Key for ClientSSLProfile Using Powershell
Hello,
I am trying to create a profile with an existing certificate and key on version 11.4.1. I have found a number of examples similar to this that correctly create the profile ...
$ProfileNam...
Michael_Jenkins
Cirrostratus
Feb 06, 2015I tried to recreate the same issue you're having, and was able to get this to work
$ProfileName = "ProfileName";
$Cert = New-Object -TypeName iControl.LocalLBProfileString;
$Cert.value = "/Common/CERT_NAME.crt";
$Key = New-Object -TypeName iControl.LocalLBProfileString;
$Key.value = "/Common/KEY_NAME.key";
$b.LocalLBProfileClientSSL.create_v2( $ProfileName, (, $Key), (, $Cert) );
Things I changed were taking out the
default-flag
denotation, because that will mark that part to be be the default instead of the value you're trying to set it as.
The other thing is using the full name of the cert and key, complete with the file extension.
And I changed it to create_v2
. I'm not really sure of the differences but I always use the v2 methods.
Hope this helps.
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