Forum Discussion
Michael_Jenkins
Feb 06, 2015Cirrostratus
I 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.