1. Openssl 인 경우
cryptographic software needs a source of unpredictable data to work correctly. Many open source operating systems provide a “randomness device” (/dev/urandom or /dev/random) that serves this purpose. All OpenSSL versions try to use /dev/urandom by default; starting with version 0.9.7, OpenSSL also tries /dev/random if /dev/urandom is not available.
참고: https://www.openssl.org/docs/faq.html
2. JVM 설정
2.1 Open the $JAVA_HOME/jre/lib/security/java.security file in a text editor.
2.2 Change the line:
securerandom.source=file:/dev/random
to read:securerandom.source=file:/dev/urandom
2.3 Save your change and exit the text editor.
ansible all -m command -a “sed -i ‘s/securerandom.source=file:\/dev\/random/securerandom. source=file:\/dev\/urandom/g’ /usr/java/default/jre/lib/ security/java.security” ansible all -m command -a “sed -n ‘117p’ /usr/java/default/jre/lib/security/java.security”
3. Tomcat 설정
vi /usr/tomcat8/bin/startup.sh
export JAVA_OPTS=” -Djava.security.egd=file:/dev/./urandom”;