OxalisCommunity / Oxalis-AS4

PEPPOL AS4 pMode plugin for Oxalis
32 stars 25 forks source link

Standalone, Unable to detect MODE, only during CEF Connectivity Test #184

Open aleixmoreno opened 2 years ago

aleixmoreno commented 2 years ago

Hello everyone, I need some help I'm trying to pass the CEF Connectivity Test "dynamic scenario" sending the message with the StandAlone solucion, but I can't find the configuration to succeed, all the time Oxalis send me the same error: "Validation of subject principal(CN) failed".

With the certificate that Peppol send me for acceptation enviroment, I send the message without any problem, and I can do all tests and everything work fine. It's only when I channge this certificate for the certificate that CEF send me, when I can't, and I don't find the solution.

I conntacted with CEF explaining this but they don't give me any solucion

Could someone help me with it?

Thanks!!

Information:

Conf

oxalis.truststore { password =xxx path = gateway_truststore.jks } oxalis.keystore { path = xxxxxx password = xxxxx key.alias = xxxxx key.password =xxxxxx } lookup.locator.hostname = "acc.edelivery.tech.ec.europa.eu/edelivery-sml/" oxalis.as4.type = cef-connectivity oxalis.path.inbound = "C:\oxalis\xxxx\IN" oxalis.path.inbound = "C:\oxalis\xxxx\OUT"

Log

INFO [network.oxalis.commons.security.CertificateModule] [] Certificate issuer: EMAILADDRESS=CEF-EDELIVERY-SUPPORT@ec.europa.eu, CN=Connectivity Test Component CA, OU=Connecting Europe Facility, O=Connectivity Test, ST=Belgium, C=BE INFO [network.oxalis.vefa.peppol.security.ModeDetector] [] Detection error (TEST): Validation of subject principal(CN) failed. INFO [network.oxalis.vefa.peppol.security.ModeDetector] [] Detection error (LOCAL): Certificate should be self-signed. INFO [network.oxalis.vefa.peppol.security.ModeDetector] [] Detection error (PRODUCTION): Validation of subject principal(CN) failed. INFO [network.oxalis.outbound.transmission.MessageSenderFactory] [] Prioritized list of transport profiles: INFO [network.oxalis.outbound.transmission.MessageSenderFactory] [] => peppol-transport-as4-v2_0 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] [] => busdox-transport-as2-ver1p0r1 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] [] => busdox-transport-as2-ver2p0 INFO [network.oxalis.outbound.transmission.MessageSenderFactory] [] => busdox-transport-as2-ver1p0 INFO [network.oxalis.vefa.peppol.security.ModeDetector] [] Detection error (TEST): Validation of subject principal(CN) failed. INFO [network.oxalis.vefa.peppol.security.ModeDetector] [] Detection error (LOCAL): Certificate should be self-signed. INFO [network.oxalis.vefa.peppol.security.ModeDetector] [] Detection error (PRODUCTION): Validation of subject principal(CN) failed. ERROR [network.oxalis.commons.guice.GuiceModuleLoader] [] Unable to detect mode. network.oxalis.api.lang.OxalisLoadingException: Unable to detect mode. at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:74) at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:46) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:85) at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:77) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:59) at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:61) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39) at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:211) at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:182) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109) at com.google.inject.Guice.createInjector(Guice.java:87) at com.google.inject.Guice.createInjector(Guice.java:69) at network.oxalis.commons.guice.GuiceModuleLoader.initiate(GuiceModuleLoader.java:66) at network.oxalis.outbound.OxalisOutboundComponent.(OxalisOutboundComponent.java:45) at eu.sendregning.oxalis.Main.main(Main.java:114) at com.validatedid.sp4i.peppol.services.impl.OxalisServicesImpl.sendUBL(OxalisServicesImpl.java:176) at com.validatedid.sp4i.peppol.services.impl.OxalisServicesImpl.sendUBLbySMP(OxalisServicesImpl.java:134) at com.validatedid.sp4i.peppol.PeppolClient.send(PeppolClient.java:49) at com.validatedid.sp4i.TestPeppol.testPostSend(TestPeppol.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:121) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) Caused by: network.oxalis.vefa.peppol.common.lang.PeppolLoadingException: Unable to detect mode for certificate 'EMAILADDRESS=CEF-EDELIVERY-SUPPORT@ec.europa.eu, CN=xxxxxxx, OU=Connecting Europe Facility, O=Connectivity Test, ST=Brussels-Capital, C=BE'. at network.oxalis.vefa.peppol.security.ModeDetector.detect(ModeDetector.java:61) at network.oxalis.commons.mode.ModeProvider.get(ModeProvider.java:72) ... 38 common frames omitted

pierfrancesco72 commented 2 years ago

Hi Aleix,

if you have downloaded the latest version of the software, try adding these 2 properties to oxalis.conf:

lookup.locator.class = network.oxalis.vefa.peppol.lookup.locator.BusdoxLocator
security.validator.class = network.oxalis.vefa.peppol.security.util.EmptyCertificateValidator
aleixmoreno commented 2 years ago

Hi Francesco!

Are you able pass the test with this changes?

Saturday someone answer to my question, but isn't really util

I need finish some task now but in few hour I restart work

Salutation


De: pierfrancesco @.> Enviado: lunes, 9 de mayo de 2022 11:12 Para: OxalisCommunity/Oxalis-AS4 @.> Cc: Aleix Moreno @.>; Author @.> Asunto: Re: [OxalisCommunity/Oxalis-AS4] Standalone, Unable to detect MODE, only during CEF Connectivity Test (Issue #184)

Hi Aleix,

if you have downloaded the latest version of the software, try adding these 2 properties to oxalis.conf:

lookup.locator.class = network.oxalis.vefa.peppol.lookup.locator.BusdoxLocator security.validator.class = network.oxalis.vefa.peppol.security.util.EmptyCertificateValidator

— Reply to this email directly, view it on GitHubhttps://github.com/OxalisCommunity/Oxalis-AS4/issues/184#issuecomment-1120848972, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKHT2W6JCT46GCEUMFYAZILVJDJJPANCNFSM5R265LBQ. You are receiving this because you authored the thread.Message ID: @.***>

pierfrancesco72 commented 2 years ago

Hi Aleix,

try the configuration I described in this other topic:

https://github.com/OxalisCommunity/Oxalis-AS4/issues/179#issuecomment-1121058797

Although it is not yet successful :-( but at least you are making progress.

Pierfrancesco

aleixmoreno commented 2 years ago

Yes I finded the same error I thought that I did something wrong but seeing that you have the same I understant all


De: pierfrancesco @.> Enviado: lunes, 9 de mayo de 2022 14:57 Para: OxalisCommunity/Oxalis-AS4 @.> Cc: Aleix Moreno @.>; Author @.> Asunto: Re: [OxalisCommunity/Oxalis-AS4] Standalone, Unable to detect MODE, only during CEF Connectivity Test (Issue #184)

Hi Aleix,

try the configuration I described in this other topic:

179 (comment)https://github.com/OxalisCommunity/Oxalis-AS4/issues/179#issuecomment-1121058797

Although it is not yet successful :-( but at least you are making progress.

Pierfrancesco

— Reply to this email directly, view it on GitHubhttps://github.com/OxalisCommunity/Oxalis-AS4/issues/184#issuecomment-1121066101, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKHT2W3NWWHPBBT7VG3U3SLVJEDURANCNFSM5R265LBQ. You are receiving this because you authored the thread.Message ID: @.***>