Provides data for the VerifyCertificate event.
public class VerifyCertificateEventArgs : BaseEventArgs Public Class VerifyCertificateEventArgsInherits BaseEventArgs
public:ref class VerifyCertificateEventArgs : BaseEventArgs
TLS Secure DICOM communications between an SCP and an SCU has a handshake process where the SCP and SCU verify each others provided certificates.
The VerifyCertificate event is called once for each certificate in a certificate chain, and provides information about the verification process.
This is useful for determining why a TLS DICOM Secure communication failed to be established.
The VerifyCertificateEventArgs.CertificateString provides information about a certificate, including:
For example, if an SCU is providing a certificate that is created without SSL Server and SSL Client purposes, the VerifyCertificateEventArgs.ErrorException property will have a value of DicomSecurityCertificateExceptionCode.InvalidPurpose, and show the problem in the Certificate Purposes section of the VerifyCertificateEventArgs.CertificateString.
An example VerifyCertificateEventArgs.CertificateString corresponding to a DicomSecurityCertificateExceptionCode value of InvalidPurpose error is shown below:
Subject Name: CN = Test Client, C = US, ST = Nebraska, L = Omaha, O = Test Client OrganizationIssuer Name: CN = LEAD CA, L = Charlotte, ST = North Carolina, C = US, emailAddress = [email protected], O = "LEAD Technologies, Inc."Valid From: Jun 1 21:31:35 2020 GMTValid To: May 30 21:31:35 2030 GMTSerial Number: ae:8a:75:37:56:03:c4:45Basic Constraints:Not a CA (Certificate Authority)Certificate purposes:SSL client : NoSSL client CA : NoSSL server : NoSSL server CA : NoNetscape SSL server : NoNetscape SSL server CA : NoS/MIME signing : NoS/MIME signing CA : NoS/MIME encryption : NoS/MIME encryption CA : NoCRL signing : NoCRL signing CA : NoAny Purpose : YesAny Purpose CA : YesOCSP helper : YesOCSP helper CA : NoTime Stamp signing : No
The VerifyCertificateEventArgs.ErrorException property is a DicomSecurityCertificateException exception that indicates success or an error.
The VerifyCertificateEventArgs.Ok property determines the verification behavior.
Set VerifyCertificateEventArgs.Ok to 0 to stop the verification process with a "verification failed" state. If the DicomConnection(string,dicomnetsecuritymode,dicomopensslcontextcreationsettings) constructor is used and DicomOpenSslVerificationFlags.Peer is passed via the DicomOpenSslContextCreationSettings argument, a verification failure alert is sent to the SCU and the TLS/SSL handshake is terminated.
Set VerifyCertificateEventArgs.Ok to 1 to continue the verification process. If VerifyCertificateEventArgs.Ok is always set to 1, the TLS/SSL handshake will not be terminated with respect to verification failures and the connection will be established.
Leave VerifyCertificateEventArgs.Ok unchanged to get the default verification behavior.
For an example, refer to VerifyCertificate.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
