Partager via


MachineIdentityManager.GetCert Method (String, String, String)

 

Returns the certificate for the local computer.

Namespace:   Microsoft.WindowsServerSolutions.Devices.Identity
Assembly:  MachineIdentityObjectModel (in MachineIdentityObjectModel.dll)

Syntax

public static X509Certificate2 GetCert(
    string serverName,
    string userName,
    string password
)
public:
static X509Certificate2^ GetCert(
    String^ serverName,
    String^ userName,
    String^ password
)
Public Shared Function GetCert (
    serverName As String,
    userName As String,
    password As String
) As X509Certificate2

Parameters

  • serverName
    Type: System.String

    The name of the server to be contacted.

  • userName
    Type: System.String

    The user name to use on the server.

Return Value

Type: System.Security.Cryptography.X509Certificates.X509Certificate2

Returns X509Certificate2.

See Also

GetCert Overload
MachineIdentityManager Class
Microsoft.WindowsServerSolutions.Devices.Identity Namespace

Return to top