EDI Integrator V9 - Online Help
Available for:
EDI Integrator V9
Questions / Feedback?

SSLServerAuthentication Event

For asynchronous HTTPS MDNs, fired after the server presents its certificate.

Syntax

[VB.NET]
Public Event OnSSLServerAuthentication As OnSSLServerAuthenticationHandler
[C#]
public event OnSSLServerAuthenticationHandler OnSSLServerAuthentication;

public delegate void OnSSLServerAuthenticationHandler(object sender, As2receiverSSLServerAuthenticationEventArgs e);

class As2receiverSSLServerAuthenticationEventArgs : EventArgs {
  string CertEncoded {get;}  byte[] CertEncodedB {get;}
  string CertSubject {get;}
  string CertIssuer {get;}
  string Status {get;}
  bool Accept {get; set;}
}

Remarks

This event is fired when returning asynchronous MDNs over HTTPS to the client, and allows the client can decide whether to continue with the connection process or not. In general, the component will allow self-signed certs only if explicitly specified.

To accept a self-signed certificate, either trap the SSLServerAuthentication event and set Accept to true based on the values of CertSubject, CertEncoded, etc., or set the SSLAcceptServerCert property to the value of the expected certificate (if the server certificate is known in advance the latter method is simpler).

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
Build 9.0.6635.0