Closed javidnoutash closed 9 months ago
Wow, that's how you create an issue :)
So you are running phoss SMP 7.1.0 - good.
First thing, mainly as a background information - you don't need the external page on peppol.helger.com to register your SMP. This is built-in under "Administration | SML | Register at SML". In that case you don't need to upload the certificate anywhere.
Your main problem is the Peppol certificate configuration. Please check the following: a) Does the "Certificate Information" page show 4 green ticks like this?
b) Have you made sure, that you selected the SMK (using the domain with acc.
for acceptance in it) and not the SML. With the Peppol test certificate you can only access the SMK but not the SML.
c) And this is the most likely case - you fiddled with the trust store :) Please don't build your own truststore, as it will most likely not contain the certificates for SMK, SML and Directory :) For testing please use this:
smp.truststore.type = jks
smp.truststore.path = truststore/2018/smp-pilot-truststore.jks
smp.truststore.password = peppol
The trust store is built into the application, as it only contains trusted certificates and is therefore public.
Good luck :)
Thanks for the quick reply!
You are right. The issue was with the truststore
. I was not sure where to get it from (I could have overseen it in the documentation) so I used my SMP certificate as my truststore
as well.
Setting the truststore
config to what you mentioned above helped.
@phax, Re-opening this issue to bring your attention to this:
Yes, thanks that is a known issue. The default trust store of version 7.1.0 contains certificates that expire soon/are already expired. This will be fixed with update 7.1.1. This has NO negative impact, as the update certificate is already contained - it's an old SML root CA.
Problem
Fail to communicate with SMK/SML when trying to register the SMP, delete SMP, create Services Groups, etc... with the following error:
TLDR; \
HTTP transport error: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
What I have done
My Test SMP certificate hierarchy:
My Setup
I have a
nginx
docker container working as reverse proxy, aphoss-smp
docker container and anoxalis
docker container for my AP.My
nginx.conf
:My
docker-compose.yaml
:My
application.properties
:Any ideas why I am getting the error above?