[prev in list] [next in list] [prev in thread] [next in thread] 

List:       puretls-users
Subject:    Couldn't find randomness
From:       Matteo Rebeschini <mrebeschini () ihmc ! us>
Date:       2005-10-12 21:32:18
Message-ID: 434D80E2.6020606 () ihmc ! us
[Download RAW message or body]

Hi,

I've been using PureTLS for a while in a project related to mobile agents.
I'm getting the following exception pretty frequently:


java.io.IOException: Couldn't find randomness in this file: \
                /usr/local/ihmcmast/lib/security/random-1129151210842.pem
         at COM.claymoresystems.crypto.RandomStore.readRandomStore(Unknown Source)
         at COM.claymoresystems.ptls.SSLContext.useRandomnessFile(Unknown Source)
         at us.ihmc.net.puretls.PureTLSSocketFactory.init(PureTLSSocketFactory.java:204)
                
         at us.ihmc.net.puretls.PureTLSSocketFactory.createSocket(PureTLSSocketFactory.java:52)
                
         at us.ihmc.comm.ConnectionManager.acceptSocket(ConnectionManager.java:416)
         at us.ihmc.nomads.spring.Spring.initialize(Spring.java:194)
         at us.ihmc.nomads.spring.Spring.<init>(Spring.java:109)
         at us.ihmc.mast.kernel.MastKernel.main(MastKernel.java:31)


The excerpt of the PureTLSSocketFactory.java where the exception occurs is
the following:

String randomPath = _securityDir + File.separator + _randomFile;

SSLContext sslContext = new SSLContext();
	
...
sslContext.loadRootCertificates (rootCertPath);
sslContext.loadEAYKeyFile (keyStorePath, _keyPass);
sslContext.useRandomnessFile (randomPath, _keyPass); <------------ line 204

I still have to figure out whether this exception is actually creating some
problems or not. I haven't been able to find any related posts online.

Any ideas?

Thanks,
Matteo


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic