Skip to content

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

@aleixmoreno

Description

@aleixmoreno

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=[email protected], 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=[email protected], 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CEF TestBedCEF Testbed Configuration IssuesupportSupport issue for community to respond to.

    Type

    No type

    Projects

    Status

    Future

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions