Use the ICISite interface SetSSHKeyFilePath method to change the SSH Certificate file path. If the site must be restarted for the change to take effect, SetSSHKeyFilePath method returns TRUE.
|
This method is available in EFT Server 4.3.4 and later. |
Signature:
HRESULT SetSSHKeyFilePath(
[in] VARIANT_BOOL newVal,
[out, retval] VARIANT_BOOL *pNeedRestart);
Example:
Dim bNeedRestart: bNeedRestart = oSite.SetSSHKeyFilePath("C:\Keys\Key.pvk")
If bNeedRestart Then
Call oSite.Stop()
Call oSite.Start()
End If
Refer to Site Certificates and Keys Parameters for an illustration of how this and other ICISite methods can be accessed in the Administrator interface.