From owner-freebsd-questions Tue Jan 21 15:18:20 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E26237B401 for ; Tue, 21 Jan 2003 15:18:19 -0800 (PST) Received: from essmail.gric.com (essmail.gric.com [216.231.192.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id C21AF43F7C for ; Tue, 21 Jan 2003 15:18:18 -0800 (PST) (envelope-from wilsont@gric.com) Received: from mail pickup service by essmail.gric.com with Microsoft SMTPSVC; Tue, 21 Jan 2003 15:16:44 -0800 Received: from exchange.gric.com ([207.20.139.7]) by essmail.gric.com with Microsoft SMTPSVC(5.0.2195.4905); Tue, 21 Jan 2003 15:16:43 -0800 Received: by exchange.gric.com with Internet Mail Service (5.5.2656.59) id ; Tue, 21 Jan 2003 15:19:09 -0800 Message-ID: <8BF679BCA72DD6119495009027D6062D72EEF7@exchange.gric.com> From: wilsont@gric.com To: freebsd-questions@freebsd.org Subject: java/linux-sun-sdk14 keytool issue Date: Tue, 21 Jan 2003 15:19:08 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-OriginalArrivalTime: 21 Jan 2003 23:16:43.0000 (UTC) FILETIME=[28E93F80:01C2C1A3] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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