Date: Tue, 21 Jan 2003 15:19:08 -0800 From: wilsont@gric.com To: freebsd-questions@freebsd.org Subject: java/linux-sun-sdk14 keytool issue Message-ID: <8BF679BCA72DD6119495009027D6062D72EEF7@exchange.gric.com>
next in thread | raw e-mail | index | archive | help
I have both freebsd 4.7 and 4.6.2 with either linux_base-6.1_3 or
linux_base-7.1_1. I am installing linux-sun-sdk14 and
jakarta-tomcat-3.3.1_16.
In order to set tomcat up for SSL connections, I need to generate the key
and certificate. I normally use this command to generate the key and
certificate in a Solaris and Linux environment:
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
For both freebsd 4.7 or 4.6.2 with either linux_base, I get the following
error:
Exception in thread "main" java.lang.InternalError: URLSeedGenerator
file:/dev/random reached end of file
at
sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedByte(SeedGenerat
or.java:476)
at
sun.security.provider.SeedGenerator.getSeedBytes(SeedGenerator.java:137)
at
sun.security.provider.SeedGenerator.generateSeed(SeedGenerator.java:132)
at
sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.java:112)
at
sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:169)
at java.security.SecureRandom.nextBytes(SecureRandom.java:381)
at COM.rsa.jsafe.SunJSSE_fq.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_df.c(DashoA6275)
at
com.sun.net.ssl.internal.ssl.JS_KeyPairGenerator.generateKeyPair(DashoA6275)
at
java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.jav
a:475)
at sun.security.x509.CertAndKeyGen.generate(CertAndKeyGen.java:103)
at sun.security.tools.KeyTool.doGenKeyPair(KeyTool.java:707)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:489)
at sun.security.tools.KeyTool.run(KeyTool.java:124)
at sun.security.tools.KeyTool.main(KeyTool.java:118)
I have searched for a few days on the Internet without any success in
correcting this. Does anyone have experience this or have some suggestions
as how I can resolve this issue?
Thanks,
Wilson
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8BF679BCA72DD6119495009027D6062D72EEF7>
