Java
<p>There might not be enough entropy from /dev/random causing blocking. Use a software solution like Haveged. Install
haveged on ubuntu:</p>
<pre><code>sudo apt-get install haveged
</code></pre>
<p>Check entropy on linux with:</p>
<pre><code>cat /proc/sys/kernel/random/entropy_avail
</code></pre>