Share via


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)

Syntax

void SetSigningCertificate(
    string pfxFile,
    SecureString password
)
void SetSigningCertificate(
    String^ pfxFile,
    SecureString^ password
)
abstract SetSigningCertificate : 
        pfxFile:string *
        password:SecureString -> unit
Sub SetSigningCertificate (
    pfxFile As String,
    password As SecureString
)

Parameters

  • pfxFile
    Type: System.String

    The PFX certificate to import into WSUS store.

Exceptions

Exception

Condition

Win32Exception

HRESULT error code returns 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