Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringThe name of the server to be contacted.
userName
Type: System.StringThe user name to use on the server.
password
Type: System.StringAn instance of X509Certificate2.
Return Value
Type: System.Security.Cryptography.X509Certificates.X509Certificate2
Returns X509Certificate2.
See Also
GetCert Overload
MachineIdentityManager Class
Microsoft.WindowsServerSolutions.Devices.Identity Namespace
Return to top