quarkiverse / quarkus-cxf

Quarkus CXF Extension to support SOAP based web services.
Apache License 2.0
78 stars 60 forks source link

Could not load keystore in @QuarkusTest #1345

Closed argenstijn closed 5 months ago

argenstijn commented 5 months ago

Quarkus : 3.9.3 Quarkus-CXF: latest Java 21 Windows 10 Maven 3.9.6

I have a simple test where i want to invoke a SOAP service (which is a wiremock server). I need a client which can perform MTLS. But when i add this configuration:

   quarkus.cxf.client.solera.key-store=cert/client/keystore.p12

But i get the following error:

Could not load cert/client/keystore.p12 from class path or filesystem

I tried absolute file path etc. But no matter, i constantly get the same error.

ppalaga commented 5 months ago

Thanks for the report @argenstijn. Hard to say without a reproducer. You may want to have a look at our mTLS test and gradually change it to your use case. That may reveal what is the problem. Otherwise a small reproducer project would be nice

argenstijn commented 5 months ago

Fix it:

The code was hiding some errors in the log where i was not aware of. So the problem was eventually that I was not setting the key password.

Thanks anyway. You can close this non issue. Sorry for the time wasting issue!.

ppalaga commented 5 months ago

Nice to hear that & thanks reporting back @argenstijn