IUpdateServerConfiguration.SetSigningCertificate Method (String, String)
Applies To: Windows Server Update Services
Registers a specified certificate in the WSUS store and removes any existing certificate. This version of the method requires the PFX certificate name and the certificate password, which is passed as a .NET Framework String object.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
void SetSigningCertificate(
string pfxFile,
string password
)
void SetSigningCertificate(
String^ pfxFile,
String^ password
)
abstract SetSigningCertificate :
pfxFile:string *
password:string -> unit
Sub SetSigningCertificate (
pfxFile As String,
password As String
)
Parameters
pfxFile
Type: System.StringThe PFX certificate to import into WSUS store.
password
Type: System.StringPassword to open the PFX file
Exceptions
Exception
Condition
HRESULT error code returned from native function.
Remarks
If pfxFile is null, the current registered certificate will be removed.
This operation requires WSUS Administrator privileges.
See Also
SetSigningCertificate Overload
IUpdateServerConfiguration Interface
Microsoft.UpdateServices.Administration Namespace
Return to top