Skip to content

Getting remote TLS certs for incoming responses #368

@koes-soptim

Description

@koes-soptim

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?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions