SSLServerAuthentication Event
For asynchronous HTTPS MDNs, fired after the server presents its certificate.
Syntax
as2receiver.on('SSLServerAuthentication', [callback])
Callback
The 'callback' is called when the 'SSLServerAuthentication' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.certEncoded (buffer) e.certSubject e.certIssuer e.status e.accept
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 class 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).