-
@phax When I use the Phase4 to send AS4 message I do receive error in an Envelope, that means the targeting AS4 server received the message. The error message "Cannot find key for certificate" seams weird, it seams to be looking for the private keys of the sender and not finding it. We have another AS4 client Domibus, which can successfully send an AS4 message, which means the receiving server is working fine. I am using the below code for configuring the crypto. Any ideas highly appreciated on why would the receiving server complain with error: Cannot find key for certificate
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
@gnazaryan can you please let me know, in what context you are trying to send messages? Peppol, CEF, ENTSOGG, SDG, ...??? If the error from the other side is "Cannot find key for certificate", it usually means, you are using the wrong public certificate to encrypt the message. |
Beta Was this translation helpful? Give feedback.
-
@phax I am using the CEF one and also with just AS4ClientUserMessage both of them result same error. The CEF code you an see below But when I use the same code to send a payload to a remote server, not managed by me, I get that error Cannot find key for certificate. As I said the same keystore works to connect with Domibus Client to that remote server but phase 4 is receiving that error Any help appreciated, thank you!
|
Beta Was this translation helpful? Give feedback.
-
Okay, so you are trying to exchange messages in the context of EUDAMED. My assumption is, that at least these values are invalid: new SimpleParticipantIdentifier (CAS4.FINAL_RECIPIENT, "urn:oasis:names:tc:ebcore:partyid-type:unregistered:C4"); and
As I couldn't find a full AS4 profile of EUDAMED I found some "related" documents on https://health.ec.europa.eu/ and they made me provide a new submodule
|
Beta Was this translation helpful? Give feedback.
@gnazaryan can you please let me know, in what context you are trying to send messages? Peppol, CEF, ENTSOGG, SDG, ...???
If the error from the other side is "Cannot find key for certificate", it usually means, you are using the wrong public certificate to encrypt the message.