Standalone, Unable to detect MODE, only during CEF Connectivity Test
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: [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.
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
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: @.***>
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
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: @.***>