question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create_certs.sh requires JAVA_HOME

See original GitHub issue

Commit: 4efa2465802cb139883054568c32d04bdc60dee8

Building with

$> mvn clean install

I get

INFO] Running org.eclipse.hono.util.CredentialsObjectTest [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! - in org.eclipse.hono.util.TenantObjectTest [ERROR] org.eclipse.hono.util.TenantObjectTest Time elapsed: 0.001 s <<< ERROR! java.io.FileNotFoundException: target/certs/trustStore.jks (Datei oder Verzeichnis nicht gefunden) at org.eclipse.hono.util.TenantObjectTest.getCaCertificate(TenantObjectTest.java:68) at org.eclipse.hono.util.TenantObjectTest.init(TenantObjectTest.java:63) … 08:20:34.301 [ForkJoinPool-1-worker-3] WARN o.e.hono.config.AbstractConfigTest$1 - unsupported key & cert format: PKCS12 08:20:34.307 [ForkJoinPool-1-worker-3] WARN o.e.hono.config.AbstractConfigTest$1 - unsupported key store format: PEM 08:20:34.319 [ForkJoinPool-1-worker-3] WARN o.e.hono.config.AbstractConfigTest$1 - cannot read trust store password, file [/non-existing-file] does not exist 08:20:34.323 [ForkJoinPool-1-worker-3] WARN o.e.hono.config.AbstractConfigTest$1 - cannot read key store password, file [/non-existing-file] does not exist

Content of my “core/target/certs”:

amqp-adapter-cert.pem
amqp-adapter-key.pem
amqpKeyStore.p12
artemis-cert.pem
artemis-key.pem
artemisKeyStore.p12
auth-server-cert.pem
auth-server-key.pem
authServerKeyStore.p12
ca-cert.pem
ca-cert.srl
ca-key.pem
coap-adapter-cert.pem
coap-adapter-key.pem
coapKeyStore.p12
command-router-cert.pem
command-router-key.pem
commandRouterKeyStore.p12
default_tenant-cert.pem
default_tenant-cert.srl
default_tenant-key.pem
device-4711-cert.pem
device-4711-key.pem
device-certs.properties
device-registry-cert.pem
device-registry-key.pem
deviceRegistryKeyStore.p12
example-gateway-cert.pem
example-gateway-key.pem
exampleGatewayKeyStore.p12
http-adapter-cert.pem
http-adapter-key.pem
httpKeyStore.p12
lora-adapter-cert.pem
lora-adapter-key.pem
loraKeyStore.p12
mqtt-adapter-cert.pem
mqtt-adapter-key.pem
mqttKeyStore.p12
qdrouter-cert.pem
qdrouter-key.pem
root-cert.pem
root-cert.srl
root-key.pem
trust-anchor.properties
trusted-certs.pem
trust-store-password

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
boakscommented, May 11, 2022

I will prepare a PR in the late afternoon.

0reactions
boakscommented, May 16, 2022

Fixed with #3249

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring the JAVA environment - Linux From Scratch!
Setting up the Certificate Authority Certificates for Java. OpenJDK uses its own format for the CA certificates. The Java security modules use $JAVA_HOME...
Read more >
java - Unable to import certificate to cacerts - Stack Overflow
It's a name, not a file. You need to quote the "%JAVA_HOME%", because it has a space inside. Share.
Read more >
Installing the JDK Software and Setting JAVA_HOME
The following tasks provide the information you need to install the JDK software and set JAVA_HOME on UNIX or Windows systems.
Read more >
JAVA_HOME not set; results may vary - no solution
Solved: If I do echo $JAVA_HOME I get /usr/lib/jvm/java-8-openjdk-amd64 as a response, yet I cannot get nifi - 303357.
Read more >
How to set JAVA_HOME and PATH in Linux? Example - Java67
You need to do it yourself. Java developers like me always set mandatory environment variables like JAVA_HOME, PATH, and CLASSPATH on the login...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found