freenet doesn't start, log contains the following lines
May 11, 2017 10:44:13:282 (freenet.crypt.ciphers.Rijndael, WrapperListener_start_runner, WARNING): Not using JCA as it is crippled (can't use 256-bit keys). Will use built-in encryption.
java.security.InvalidKeyException: Illegal key size
Looks more like a warning than a fatal error. Are you sure it doesn't start? Tackling this properly is non-trivial because we would need to add a USE flag to virtual/jre and then make java-config ensure a JRE with that flag is used at runtime. Please enable the jce flag or use icedtea(-bin).
I installed it with JCE flag:
emerge -pv dev-java/oracle-jre-bin
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild Rf ] dev-java/oracle-jre-bin-184.108.40.206:1.8::gentoo USE="alsa cups fontconfig jce nsplugin -commercial -headless-awt -javafx (-selinux)" 0 KiB
and configured it
# java-config --list-available-vms
The following VMs are available for generation-2:
*) Oracle JRE 220.127.116.11 [oracle-jre-bin-1.8]
but freenet still doesn't start.
# systemctl status freenet
● freenet.service - An encrypted network without censorship and monitoring.
Loaded: loaded (/usr/lib64/systemd/system/freenet.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-05-11 15:03:53 MSK; 7min ago
Process: 24905 ExecStop=/var/freenet/run.sh stop (code=exited, status=0/SUCCESS)
Process: 24801 ExecStart=/var/freenet/run.sh start (code=exited, status=0/SUCCESS)
Main PID: 24862 (code=exited, status=1/FAILURE)
May 11 15:03:49 sabayon systemd: Starting An encrypted network without censorship and monitoring....
May 11 15:03:49 sabayon run.sh: Starting Freenet 0.7...
May 11 15:03:50 sabayon systemd: Started An encrypted network without censorship and monitoring..
May 11 15:03:53 sabayon systemd: freenet.service: Main process exited, code=exited, status=1/FAILURE
May 11 15:03:53 sabayon systemd: freenet.service: Unit entered failed state.
May 11 15:03:53 sabayon systemd: freenet.service: Failed with result 'exit-code'.
the full log of wrapper is attached (below).
Created attachment 472322 [details]
There seems to be two errors here. It fails to use BouncyCastle, which isn't fatal. This possibly comes from building it from source.
Caused by: java.util.jar.JarException: file:/usr/share/bcprov-1.54/lib/bcprov.jar has unsigned entries - org/bouncycastle/jce/PKCS10CertificationRequest.class
The fatal error seems to be "Not enough entropy available" but I don't know enough about this to be able to comment. I don't think it's related to JCE.
I tried to symlink
rm /dev/random && ln -s /dev/urandom /dev/random
this change nothing.
that is why i think this error doesn't relate to entropy unavailability.
Try using icedtea-bin instead but make sure you use 3.3.0-r1.
yes, with this version it starts