BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 12th, 2004, 05:32 AM
Man479 Man479 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 36 Man479 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 23 m 57 sec
Reputation Power: 9
URLSeedGenerator file:/dev/random reached end of file

Hi,

I am trying to put HTTP/S request to Apache server from java program running on FreeBSD 4.10

but while executing it gives following error at

(SSLSocketFactory)SSLSocketFactory.getDefault();

Error is :

PHP Code:
 Exception in thread "main" java.lang.InternalErrorURLSeedGenerator file:/dev/random reached end of file
        at sun
.security.provider.SeedGenerator$URLSeedGenerator.getSeedByte(SeedGenerator.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 java.security.SecureRandom.next(SecureRandom.java:403)
        
at java.util.Random.nextInt(Random.java:191)
        
at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineInit(DashoA6275)
        
at com.sun.net.ssl.internal.ssl.SSLContextImpl.e(DashoA6275)
        
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.<init>(DashoA6275)
        
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)  
        
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        
at java.lang.Class.newInstance0(Class.java:308)
        
at java.lang.Class.newInstance(Class.java:261)
        
at javax.net.ssl.SSLSocketFactory.getDefault(DashoA6275)        at ApacheSSL.main(ApacheSSL.java:17


how can i remove this error

FreeBSD 4.10-BETA (GENERIC)
I am using following packages
linux-sun-jdk-1.4.2.04 Sun Java Development Kit 1.4 for Linux
linux_base-8-8.0_4 Base set of packages needed in Linux mode (only for i386)
linux_devtools-8.0_1 Packages needed for doing development in Linux mode
libtool-1.3.5_1 Generic shared library support script
gmake-3.80_1 GNU version of 'make' utility
automake-1.4.5_9 GNU Standards-compliant Makefile generator (legacy version
GCC 2.95.4
gdb 4.18
ld 2.12.1 supported emulation elf_i386


Thanks in advance

Regards
Man479

Reply With Quote
  #2  
Old August 12th, 2004, 07:41 AM
Man479 Man479 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 36 Man479 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 23 m 57 sec
Reputation Power: 9
That error is removed by reffering to below link

Helpful Link:
http://www.clarksys.com/archives/2004/01/stir_the_entropy_pool_in_freebsd_4.html


but I am facing below error:





Code:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at ApacheSSL.main(ApacheSSL.java:23)
Caused by: sun.security.validator.ValidatorException: No trusted certificate found
at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304)
at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107)
at sun.security.validator.Validator.validate(Validator.java:202)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)



Regards
Man479

Reply With Quote
  #3  
Old June 1st, 2006, 09:06 PM
tyreth tyreth is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 10 tyreth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 45 sec
Reputation Power: 0
Hi,

Found this thread through google while having the same end of file for /dev/random. The URL you provided has changed to:
http://www.clarksys.com/archives/2004/01/16/stir-the-entropy-pool-in-freebsd-4/

Just for reference in case that link disappears one day:
1. dmesg | grep irq - find out the IRQ of an interface (eg, ethernet interface) that's used
2. Add those to the random generator's seed:
# rndcontrol -s 10
# rndcontrol -s 11
# rndcontrol -s 14
# rndcontrol
The last command outputs what seeds its using
3. Add to /etc/rc.conf if you want it to keep over machine reboots:
rand_irqs=”10 11 14″

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > URLSeedGenerator file:/dev/random reached end of file

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap