CEMResponse Event
Fired when a Certificate Exchange Messaging (CEM) response is received.
Syntax
as2receiver.on('CEMResponse', listener: (e: {readonly requestId: string, readonly as2From: string}) => void )
Remarks
This event fires when a Certificate Exchange Messaging (CEM) response is received.
RequestId is the CEM request Id. Match this to the request Id from the original request.
As2From identifies the sender of the CEM request.
When this event fires the CEMDetails property will be populated. Inspect the CEMDetailsAccepted property to determine whether each CEM request was accepted. If the request was rejected, check CEMDetailsRejectionReason for details.
When this event fires the following CEMDetails properties are applicable:
- CEMDetailsCertIssuer
- CEMDetailsCertSerialNumber
- CEMDetailsAccepted
- CEMDetailsRejectionReason