ICompactServer::SetSslCertificate method

Sets the Secure Sockets Layer (SSL) certificate for a connection. Each certificate store entry contains the IP address and port of the server, and a hash of the certificate.

Syntax

HRESULT SetSslCertificate(
  [in]                unsigned short port,
  [in]                LPCWSTR storeName,
  [out, size_is(20)]  byte *hashBlob
);

Parameters

  • port [in]
    Defines the port on which the certificate must be bound.

  • storeName [in]
    Specifies the store name of the certificate for the SYSTEM account.

  • hashBlob [out]
    Specifies the SHA1 hash that identifies the certificate. A 20 byte buffer is used for the hash.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

None supported [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Redistributable

Windows Management Framework on Windows Server 2008 with SP2

Header

Managementserver.h

IDL

Managementserver.idl

Library

Managementserver.lib

See also

ICompactServer

 

 

Send comments about this topic to Microsoft

Build date: 11/12/2012