#keytool gencert taking too long

6 messages · Page 1 of 1 (latest)

ember ivy
#

I am issuing the following command in a terminal on macosx :

keytool -gencert -alias controllastcom -keystore jettykeystore.p12 -dname 'CN=controllast.com,OU=operations,O=controllast,L=Castanheira,S=Lisboa,C=Portugal' -keyalg RSA

It asks for the keystore password, I enter it, and then it stays there. I haven't waited much, but I think it hangs.
Saw some posts on StackOverflow that say switch the JVM.
I was on graalvm-ce-17.0.9 and I also tried on openjdk-24.0.1
Both behave the same way.
Has anyone come across something like this ?

plucky lodgeBOT
#

This post has been reserved for your question.

Hey @ember ivy! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 720 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

vocal mica
#

For example running jcmd to find the process id followed by jcmd <pid> Thread.print to create a thread dump that can help diagnosing where it's stuck

#

but yes, switching the JDK can help with issues like that