CertificateHelper.EncryptWithCertificate Method (String, String)

Encrypts an X.509 certificate with the supplied password based on the certificate thumbprint.

Namespace: Microsoft.Hpc.Azure.ClusterConfig
Assembly: Microsoft.Hpc.Azure.ClusterConfig (in Microsoft.Hpc.Azure.ClusterConfig.dll)

Usage

'Usage
Dim clearText As String
Dim thumbprint As String
Dim returnValue As String

returnValue = CertificateHelper.EncryptWithCertificate(clearText, thumbprint)

Syntax

'Declaration
Public Shared Function EncryptWithCertificate ( _
    clearText As String, _
    thumbprint As String _
) As String
public static string EncryptWithCertificate (
    string clearText,
    string thumbprint
)
public:
static String^ EncryptWithCertificate (
    String^ clearText, 
    String^ thumbprint
)
public static String EncryptWithCertificate (
    String clearText, 
    String thumbprint
)
public static function EncryptWithCertificate (
    clearText : String, 
    thumbprint : String
) : String

Parameters

  • clearText
    The password to encrypt the certificate
  • thumbprint
    The thumbprint of theX.509 certificate to encrypt.

Return Value

Returns a String object that contains the encrypted text.

Remarks

Platform Note: This method was introduced in the Windows Azure SDK v 1.6 with the Windows Azure HPC Scheduler SDK. It is not supported in previous versions.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows Server 2008 R2, Windows Server 2012

See Also

Reference

CertificateHelper Class
CertificateHelper Members
Microsoft.Hpc.Azure.ClusterConfig Namespace

Build Date:

2013-04-22