Good morning,
we asked ourselves if it is possible to access the remote TLS certificates when receiving a signal message.
Aeons ago, I added m_aRemoteTlsCerts to AS4IncomingMessageMetadata - but for outward connections, the peer certificates aren't yet populated.
I think we could gather the certificates in AbstractAS4Client#sendMessageWithRetries - but I assume the prerequisite are changes to ph-httpclient (some kind of interceptor or related measure). Then, we could call AS4IncomingMessageMetadata#setRemoteTlsCerts in AS4BidirectionalClientHelper.
Our main aim is a validation like #182 on the peer certificates.
Would that be possible?
Good morning,
we asked ourselves if it is possible to access the remote TLS certificates when receiving a signal message.
Aeons ago, I added
m_aRemoteTlsCertstoAS4IncomingMessageMetadata- but for outward connections, the peer certificates aren't yet populated.I think we could gather the certificates in
AbstractAS4Client#sendMessageWithRetries- but I assume the prerequisite are changes toph-httpclient(some kind of interceptor or related measure). Then, we could callAS4IncomingMessageMetadata#setRemoteTlsCertsinAS4BidirectionalClientHelper.Our main aim is a validation like #182 on the peer certificates.
Would that be possible?