Secure Connection with DVT Simulator

If you are testing DicomObjects's Secure Connection Functionalities and wish you to use DVT simulator as the tester, then it is very easy to do so as long as you have the DVT-trusted ".p12" file (we are using the one that comes with DVT here):

Dim sec As New DicomServerSecurity
Dim CertBytes As Byte() 
CertBytes = System.IO.File.ReadAllBytes("C:\Program Files\DVT\certificates\SutSelfSigned.p12")
sec.Certificate = New X509Certificate2(CertBytes, "dvt")
sec.ClientAuthentication = False
server.Listen(104, sec)  ' server is a DicomServer object