LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetTlsClientCertificate Method
See Also 
Leadtools.Dicom Namespace > DicomNet Class : SetTlsClientCertificate Method



pathToCertificate
The path to the file that contains the certificate.
certificateType
The type of the certificate (textual or binary).
pathToKeyFile
The path to the file containing the private key. This parameter is used if the private key is available in raw mode.
pathToCertificate
The path to the file that contains the certificate.
certificateType
The type of the certificate (textual or binary).
pathToKeyFile
The path to the file containing the private key. This parameter is used if the private key is available in raw mode.
Sets a certificate for the client.

Syntax

Visual Basic (Declaration) 
Public Sub SetTlsClientCertificate( _
   ByVal pathToCertificate As String, _
   ByVal certificateType As DicomTlsCertificateType, _
   ByVal pathToKeyFile As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomNet
Dim pathToCertificate As String
Dim certificateType As DicomTlsCertificateType
Dim pathToKeyFile As String
 
instance.SetTlsClientCertificate(pathToCertificate, certificateType, pathToKeyFile)
C# 
public void SetTlsClientCertificate( 
   string pathToCertificate,
   DicomTlsCertificateType certificateType,
   string pathToKeyFile
)
C++/CLI 
public:
void SetTlsClientCertificate( 
   String^ pathToCertificate,
   DicomTlsCertificateType certificateType,
   String^ pathToKeyFile
) 

Parameters

pathToCertificate
The path to the file that contains the certificate.
certificateType
The type of the certificate (textual or binary).
pathToKeyFile
The path to the file containing the private key. This parameter is used if the private key is available in raw mode.

Example

Remarks

The usual sizes for an RSA key is 512 and 1024 bits. There is a limitation for import in Europe - an RSA key must be at least 768 bits long. There are no known export restrictions.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features