To identify whether you are having this problem, enable DEBUG logging for the class org.subethamail in your log4j.properties file.
startTLS() failed: no cipher suites in common
The following process outlines one method for creating a self-signed certificate. However, this can differ between JVM vendors, so see the JVM documentation for more information.
- Create a suitable key and certificate:
keytool -genkey -keystore mySrvKeystore -keyalg RSA
- Add the following somewhere in your Tomcat configuration. For example,
JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456"