ICompactServer::GetSslCertificate method

Gets the Secure Sockets Layer (SSL) certificate information.

Syntax

HRESULT GetSslCertificate(
  [in]                                                       unsigned short port,
  [out]                                                      LPCWSTR *storeName,
  [out]                                                      DWORD *hashLength,
  [out, size_is(1, *hashLength), length_is(1, *hashLength)]  byte **certHash
);

Parameters

  • port [in]
    Specifies the port on which the certificate is bound.

  • storeName [out]
    Contains the name of the certificate store.

  • hashLength [out]
    Defines the length of the certHash parameter.

  • certHash [out]
    Specifies the certificate 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