IUpdateServerConfiguration.SetSigningCertificate Method (String, SecureString)

 

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 SecureString object.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

void SetSigningCertificate(
	string pfxFile,
	SecureString password
)

Parameters

pfxFile
Type: System.String

The PFX certificate to import into WSUS store.

password
Type: System.Security.SecureString

Password to open the PFX file

Exception Condition
Win32Exception

HRESULT error code returns from native function.

If pfxFile is null, the current registered certificate will be removed.

This operation requires WSUS Administrator privileges.

Return to top

Community Additions

ADD
Show: